summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-18 00:11:08 +0000
committerChris Lattner <sabre@nondot.org>2002-07-18 00:11:08 +0000
commit1aa7132700f29c11b7be03f08dbc369a11d131ca (patch)
tree09581a62f7685a1d922e1909aa270556b7295925 /include
parente01166591f7c0d0a560c9c71e07eb1d5a2f02bef (diff)
downloadllvm-1aa7132700f29c11b7be03f08dbc369a11d131ca.tar.gz
llvm-1aa7132700f29c11b7be03f08dbc369a11d131ca.tar.bz2
llvm-1aa7132700f29c11b7be03f08dbc369a11d131ca.tar.xz
Make getelementptr ConstExpr take a vector of constants not values
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Constants.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index e91114f714..1674e0a3a6 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -340,25 +340,25 @@ public:
// Use the appropriate Constant subclass above for known constants.
//
class ConstantExpr : public Constant {
-protected:
unsigned iType; // operation type
protected:
ConstantExpr(unsigned opCode, Constant *C, const Type *Ty);
ConstantExpr(unsigned opCode, Constant* C1, Constant* C2, const Type *Ty);
ConstantExpr(unsigned opCode, Constant* C,
- const std::vector<Value*>& IdxList, const Type *Ty);
+ const std::vector<Constant*> &IdxList, const Type *Ty);
~ConstantExpr() {}
virtual void destroyConstant();
public:
// Static methods to construct a ConstantExpr of different kinds.
- static ConstantExpr *get(unsigned opCode, Constant *C, const Type *Ty);
- static ConstantExpr *get(unsigned opCode,
+ static ConstantExpr *get(unsigned Opcode, Constant *C, const Type *Ty);
+ static ConstantExpr *get(unsigned Opcode,
Constant *C1, Constant *C2, const Type *Ty);
- static ConstantExpr *get(unsigned opCode, Constant* C,
- const std::vector<Value*>& idxList, const Type *Ty);
+ static ConstantExpr *get(unsigned Opcode, Constant *C,
+ const std::vector<Constant*> &IdxList,
+ const Type *Ty);
// isNullValue - Return true if this is the value that would be returned by
// getNullValue.
@@ -368,8 +368,8 @@ public:
unsigned getOpcode() const { return iType; }
// getOpcodeName - Return a string representation for an opcode.
- static const char* getOpcodeName(unsigned opCode);
- const char* getOpcodeName() const {
+ static const char *getOpcodeName(unsigned opCode);
+ const char *getOpcodeName() const {
return getOpcodeName(getOpcode());
}