diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-28 18:32:17 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-28 18:32:17 +0000 |
commit | 7b4f9f8b74cd8f8d476787763ea02030762b00e7 (patch) | |
tree | 1d75f632724874d39fcab0f961b588afe4dbadbd /include/llvm/Support/IRBuilder.h | |
parent | 46978976b3ae91ae883561076cacb2b2affc5862 (diff) | |
download | external_llvm-7b4f9f8b74cd8f8d476787763ea02030762b00e7.zip external_llvm-7b4f9f8b74cd8f8d476787763ea02030762b00e7.tar.gz external_llvm-7b4f9f8b74cd8f8d476787763ea02030762b00e7.tar.bz2 |
Change ConstantArray to 2.5 API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/IRBuilder.h')
-rw-r--r-- | include/llvm/Support/IRBuilder.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h index d22bc3d..12439d4 100644 --- a/include/llvm/Support/IRBuilder.h +++ b/include/llvm/Support/IRBuilder.h @@ -413,7 +413,7 @@ public: return CreateConstGEP2_32(Ptr, 0, Idx, Name); } Value *CreateGlobalString(const char *Str = "", const char *Name = "") { - Constant *StrConstant = Context.getConstantArray(Str, true); + Constant *StrConstant = ConstantArray::get(Str, true); Module &M = *BB->getParent()->getParent(); GlobalVariable *gv = new GlobalVariable(M, StrConstant->getType(), |