static ConstantArray *get(const string &Initializer);
virtual string getStrValue() const;
+ inline const ArrayType *getType() const {
+ return (ArrayType*)Value::getType();
+ }
inline const vector<Use> &getValues() const { return Operands; }
const vector<Constant*> &V);
virtual string getStrValue() const;
+ inline const StructType *getType() const {
+ return (StructType*)Value::getType();
+ }
inline const vector<Use> &getValues() const { return Operands; }
~ConstantPointer() {}
public:
virtual string getStrValue() const = 0;
+ inline const PointerType *getType() const {
+ return (PointerType*)Value::getType();
+ }
// isNullValue - Return true if this is the value that would be returned by
// getNullConstant.