Ensure ConstExpr constants are unique.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2910 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vikram S. Adve 2002-07-15 18:20:50 +00:00
parent d0b1bb01f2
commit ab6317a1e5

View File

@ -350,7 +350,7 @@ protected:
const std::vector<Value*>& IdxList, const Type *Ty);
~ConstantExpr() {}
virtual void destroyConstant() { destroyConstantImpl(); }
virtual void destroyConstant();
public:
// Static methods to construct a ConstantExpr of different kinds.
@ -358,7 +358,7 @@ public:
static ConstantExpr *get(unsigned opCode,
Constant *C1, Constant *C2, const Type *Ty);
static ConstantExpr *get(unsigned opCode, Constant* C,
const std::vector<Value*>& idxList, const Type *Ty);
const std::vector<Value*>& idxList, const Type *Ty);
// isNullValue - Return true if this is the value that would be returned by
// getNullValue.