diff options
-rw-r--r-- | include/llvm/Constants.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index fbb7a42f5d..324f506120 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -402,9 +402,12 @@ protected: ConstantStruct(const StructType *T, const std::vector<Constant*> &Val); public: /// get() - Static factory methods - Return objects of the specified value + /// static Constant *get(const StructType *T, const std::vector<Constant*> &V); + static Constant *get(const std::vector<Constant*> &V); /// getType() specialization - Reduce amount of casting... + /// inline const StructType *getType() const { return reinterpret_cast<const StructType*>(Value::getType()); } |