diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-10 17:35:01 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-10 17:35:01 +0000 |
commit | c7d2ce7047d7cb026c3198e6760415ed673b00f7 (patch) | |
tree | 1fe67a461a7035eb67f8ee537716afb73bf88708 /include/llvm/Support/NoFolder.h | |
parent | 3ca524e336ad0be449c080235a2d7a38516f0ca4 (diff) | |
download | llvm-c7d2ce7047d7cb026c3198e6760415ed673b00f7.tar.gz llvm-c7d2ce7047d7cb026c3198e6760415ed673b00f7.tar.bz2 llvm-c7d2ce7047d7cb026c3198e6760415ed673b00f7.tar.xz |
Push LLVMContext through the PatternMatch API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75255 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/NoFolder.h')
-rw-r--r-- | include/llvm/Support/NoFolder.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Support/NoFolder.h b/include/llvm/Support/NoFolder.h index 40c1996c31..c110270f32 100644 --- a/include/llvm/Support/NoFolder.h +++ b/include/llvm/Support/NoFolder.h @@ -30,7 +30,10 @@ namespace llvm { /// NoFolder - Create "constants" (actually, values) with no folding. class NoFolder { + LLVMContext &Context; public: + + NoFolder(LLVMContext &C) : Context(C) { } //===--------------------------------------------------------------------===// // Binary Operators @@ -113,7 +116,7 @@ public: Constant *CreateGetElementPtr(Constant *C, Constant* const *IdxList, unsigned NumIdx) const { - return ConstantExpr::getGetElementPtr(C, IdxList, NumIdx); + return Context.getConstantExprGetElementPtr(C, IdxList, NumIdx); } Value *CreateGetElementPtr(Constant *C, Value* const *IdxList, unsigned NumIdx) const { |