ConstantArray(const ArrayType *T, const std::vector<Constant*> &Val);
~ConstantArray() {}
- virtual void destroyConstant();
public:
static ConstantArray *get(const ArrayType *T, const std::vector<Constant*> &);
static ConstantArray *get(const std::string &Initializer);
// getNullValue.
virtual bool isNullValue() const { return false; }
+ virtual void destroyConstant();
+
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const ConstantArray *) { return true; }
static bool classof(const Constant *CPV); // defined in Constants.cpp
ConstantStruct(const StructType *T, const std::vector<Constant*> &Val);
~ConstantStruct() {}
- virtual void destroyConstant();
public:
static ConstantStruct *get(const StructType *T,
const std::vector<Constant*> &V);
// getNullValue.
virtual bool isNullValue() const { return false; }
+ virtual void destroyConstant();
+
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const ConstantStruct *) { return true; }
static bool classof(const Constant *CPV); // defined in Constants.cpp
// getNullValue.
virtual bool isNullValue() const { return true; }
+ virtual void destroyConstant();
+
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const ConstantPointerNull *) { return true; }
static inline bool classof(const ConstantPointer *P) {
protected:
ConstantPointerRef(GlobalValue *GV);
~ConstantPointerRef() {}
-
- virtual void destroyConstant() { destroyConstantImpl(); }
public:
static ConstantPointerRef *get(GlobalValue *GV);
return cast<GlobalValue>(Operands[0].get());
}
+ virtual void destroyConstant();
+
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const ConstantPointerRef *) { return true; }
static inline bool classof(const ConstantPointer *CPV) {
const Type *DestTy);
~ConstantExpr() {}
- virtual void destroyConstant();
-
public:
// Static methods to construct a ConstantExpr of different kinds.
// isConstantExpr - Return true if this is a ConstantExpr
virtual bool isConstantExpr() const { return true; }
-
+
+ virtual void destroyConstant();
+
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const ConstantExpr *) { return true; }
static inline bool classof(const Constant *CPV) {