aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Constants.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-15 04:14:47 +0000
committerChris Lattner <sabre@nondot.org>2004-02-15 04:14:47 +0000
commitca705fa31d53469d2e6d0e52fa9e40d3e13a088a (patch)
tree937806d1f5e480c96a3067c3ab613c3307fcc2dd /include/llvm/Constants.h
parent04d1fb6df9799009c1ad7d7c5a6419d48c916ff7 (diff)
downloadexternal_llvm-ca705fa31d53469d2e6d0e52fa9e40d3e13a088a.zip
external_llvm-ca705fa31d53469d2e6d0e52fa9e40d3e13a088a.tar.gz
external_llvm-ca705fa31d53469d2e6d0e52fa9e40d3e13a088a.tar.bz2
ConstantArray::get and ConstantStruct::get now just return pointers to
'Constant', instead of specific subclass pointers. In the future, these will return an instance of ConstantAggregateZero if all of the inputs are zeros. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11467 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r--include/llvm/Constants.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index 7e72879..0921cbb 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -321,8 +321,8 @@ protected:
ConstantArray(const ArrayType *T, const std::vector<Constant*> &Val);
public:
/// get() - Static factory methods - Return objects of the specified value
- static ConstantArray *get(const ArrayType *T, const std::vector<Constant*> &);
- static ConstantArray *get(const std::string &Initializer);
+ static Constant *get(const ArrayType *T, const std::vector<Constant*> &);
+ static Constant *get(const std::string &Initializer);
/// getType - Specialize the getType() method to always return an ArrayType,
/// which reduces the amount of casting needed in parts of the compiler.
@@ -383,8 +383,7 @@ protected:
ConstantStruct(const StructType *T, const std::vector<Constant*> &Val);
public:
/// get() - Static factory methods - Return objects of the specified value
- static ConstantStruct *get(const StructType *T,
- const std::vector<Constant*> &V);
+ static Constant *get(const StructType *T, const std::vector<Constant*> &V);
/// getType() specialization - Reduce amount of casting...
inline const StructType *getType() const {