summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Core.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-28 18:32:17 +0000
committerOwen Anderson <resistor@mac.com>2009-07-28 18:32:17 +0000
commitc2c7932c640032063fddab43a13e2c15aa29fda3 (patch)
treec8345816a0dfb9ce8a8f71cb4aec18b7cd3bbeb3 /llvm/lib/VMCore/Core.cpp
parent2706a550711dd4c85924b78cc1787267e62aec56 (diff)
downloadbcm5719-llvm-c2c7932c640032063fddab43a13e2c15aa29fda3.tar.gz
bcm5719-llvm-c2c7932c640032063fddab43a13e2c15aa29fda3.zip
Change ConstantArray to 2.5 API.
llvm-svn: 77347
Diffstat (limited to 'llvm/lib/VMCore/Core.cpp')
-rw-r--r--llvm/lib/VMCore/Core.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp
index 12f7c3223bc..a262f40c496 100644
--- a/llvm/lib/VMCore/Core.cpp
+++ b/llvm/lib/VMCore/Core.cpp
@@ -402,13 +402,13 @@ LLVMValueRef LLVMConstString(const char *Str, unsigned Length,
int DontNullTerminate) {
/* Inverted the sense of AddNull because ', 0)' is a
better mnemonic for null termination than ', 1)'. */
- return wrap(getGlobalContext().getConstantArray(std::string(Str, Length),
+ return wrap(ConstantArray::get(std::string(Str, Length),
DontNullTerminate == 0));
}
LLVMValueRef LLVMConstArray(LLVMTypeRef ElementTy,
LLVMValueRef *ConstantVals, unsigned Length) {
- return wrap(getGlobalContext().getConstantArray(
+ return wrap(ConstantArray::get(
getGlobalContext().getArrayType(unwrap(ElementTy), Length),
unwrap<Constant>(ConstantVals, Length),
Length));
OpenPOWER on IntegriCloud