diff options
| author | Chris Lattner <sabre@nondot.org> | 2012-01-31 06:18:43 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2012-01-31 06:18:43 +0000 |
| commit | f1179025ae43be2b23d6c936f10063aab622ea2a (patch) | |
| tree | 7a211bf9572c18d5275b058538cc6535ed42f848 /llvm/lib/VMCore/IRBuilder.cpp | |
| parent | c0b52babc7e2f898f551fb031a316a7a662e3472 (diff) | |
| download | bcm5719-llvm-f1179025ae43be2b23d6c936f10063aab622ea2a.tar.gz bcm5719-llvm-f1179025ae43be2b23d6c936f10063aab622ea2a.zip | |
eliminate the "string" form of ConstantArray::get, using
ConstantDataArray::getString instead.
llvm-svn: 149365
Diffstat (limited to 'llvm/lib/VMCore/IRBuilder.cpp')
| -rw-r--r-- | llvm/lib/VMCore/IRBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/IRBuilder.cpp b/llvm/lib/VMCore/IRBuilder.cpp index 0994394aefd..b45923489af 100644 --- a/llvm/lib/VMCore/IRBuilder.cpp +++ b/llvm/lib/VMCore/IRBuilder.cpp @@ -24,7 +24,7 @@ using namespace llvm; /// specified. If Name is specified, it is the name of the global variable /// created. Value *IRBuilderBase::CreateGlobalString(StringRef Str, const Twine &Name) { - Constant *StrConstant = ConstantArray::get(Context, Str, true); + Constant *StrConstant = ConstantDataArray::getString(Context, Str); Module &M = *BB->getParent()->getParent(); GlobalVariable *GV = new GlobalVariable(M, StrConstant->getType(), true, GlobalValue::PrivateLinkage, |

