aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-12 20:36:08 +0000
committerChris Lattner <sabre@nondot.org>2004-07-12 20:36:08 +0000
commitc78631f0e2cfd7808233176c638c7f9a50ccaff2 (patch)
treef63f08bf715ac18d9e7f5ef91bb750224dd87bf9
parentb370c7a41a7bd43c4af2d7858556b25e7ac802dc (diff)
Add a helper method. The StructType element is completely redundant in most
cases git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14777 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Constants.h3
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());
}