Commit 8b21cc58 by Jim Stichnoth

Subzero: Fix the LLVM trunk build.

The original Ice::Inst needed a bit of template specialization so that llvm::ilist<Ice::Inst> methods wouldn't try to invoke private/deleted ctor/dtor methods. The Subzero code copied a pattern fairly widely used in LLVM. Recently, LLVM improved ilist<> so that this specialization is no longer needed. BUG= none R=jpp@chromium.org Review URL: https://codereview.chromium.org/2287363002 .
parent 135f5dbf
...@@ -1122,6 +1122,7 @@ bool checkForRedundantAssign(const Variable *Dest, const Operand *Source); ...@@ -1122,6 +1122,7 @@ bool checkForRedundantAssign(const Variable *Dest, const Operand *Source);
} // end of namespace Ice } // end of namespace Ice
#ifdef PNACL_LLVM
namespace llvm { namespace llvm {
/// Override the default ilist traits so that Inst's private ctor and deleted /// Override the default ilist traits so that Inst's private ctor and deleted
...@@ -1142,6 +1143,7 @@ private: ...@@ -1142,6 +1143,7 @@ private:
}; };
} // end of namespace llvm } // end of namespace llvm
#endif // PNACL_LLVM
namespace Ice { namespace Ice {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment