summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/IRBuilder.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-01-31 06:18:43 +0000
committerChris Lattner <sabre@nondot.org>2012-01-31 06:18:43 +0000
commitf1179025ae43be2b23d6c936f10063aab622ea2a (patch)
tree7a211bf9572c18d5275b058538cc6535ed42f848 /llvm/lib/VMCore/IRBuilder.cpp
parentc0b52babc7e2f898f551fb031a316a7a662e3472 (diff)
downloadbcm5719-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.cpp2
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,
OpenPOWER on IntegriCloud