[llvm-commits] CVS: llvm/include/llvm/Constants.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Feb 14 22:15:13 PST 2004
Changes in directory llvm/include/llvm:
Constants.h updated: 1.41 -> 1.42
---
Log message:
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.
---
Diffs of the changes: (+3 -4)
Index: llvm/include/llvm/Constants.h
diff -u llvm/include/llvm/Constants.h:1.41 llvm/include/llvm/Constants.h:1.42
--- llvm/include/llvm/Constants.h:1.41 Mon Feb 2 12:53:04 2004
+++ llvm/include/llvm/Constants.h Sat Feb 14 22:14:40 2004
@@ -321,8 +321,8 @@
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 @@
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 {
More information about the llvm-commits
mailing list