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 | 1fd7096407d5e598ed3366a1141548e71273f1c5 (patch) | |
| tree | 1d75f632724874d39fcab0f961b588afe4dbadbd /lib/Transforms/Utils | |
| parent | 8e7c38e17b4c3eef8c079004f01329b7bd2bb24a (diff) | |
| download | external_llvm-1fd7096407d5e598ed3366a1141548e71273f1c5.zip external_llvm-1fd7096407d5e598ed3366a1141548e71273f1c5.tar.gz external_llvm-1fd7096407d5e598ed3366a1141548e71273f1c5.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 'lib/Transforms/Utils')
| -rw-r--r-- | lib/Transforms/Utils/LowerInvoke.cpp | 4 | ||||
| -rw-r--r-- | lib/Transforms/Utils/ValueMapper.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/LowerInvoke.cpp b/lib/Transforms/Utils/LowerInvoke.cpp index 6a56bbe..b75b2ef 100644 --- a/lib/Transforms/Utils/LowerInvoke.cpp +++ b/lib/Transforms/Utils/LowerInvoke.cpp @@ -183,7 +183,7 @@ void LowerInvoke::createAbortMessage(Module *M) { // The abort message for expensive EH support tells the user that the // program 'unwound' without an 'invoke' instruction. Constant *Msg = - Context.getConstantArray("ERROR: Exception thrown, but not caught!\n"); + ConstantArray::get("ERROR: Exception thrown, but not caught!\n"); AbortMessageLength = Msg->getNumOperands()-1; // don't include \0 GlobalVariable *MsgGV = new GlobalVariable(*M, Msg->getType(), true, @@ -195,7 +195,7 @@ void LowerInvoke::createAbortMessage(Module *M) { // The abort message for cheap EH support tells the user that EH is not // enabled. Constant *Msg = - Context.getConstantArray("Exception handler needed, but not enabled." + ConstantArray::get("Exception handler needed, but not enabled." "Recompile program with -enable-correct-eh-support.\n"); AbortMessageLength = Msg->getNumOperands()-1; // don't include \0 diff --git a/lib/Transforms/Utils/ValueMapper.cpp b/lib/Transforms/Utils/ValueMapper.cpp index 643805a..673bb0b 100644 --- a/lib/Transforms/Utils/ValueMapper.cpp +++ b/lib/Transforms/Utils/ValueMapper.cpp @@ -56,7 +56,7 @@ Value *llvm::MapValue(const Value *V, ValueMapTy &VM, LLVMContext &Context) { Values.push_back(cast<Constant>(MV)); for (++i; i != e; ++i) Values.push_back(cast<Constant>(MapValue(*i, VM, Context))); - return VM[V] = Context.getConstantArray(CA->getType(), Values); + return VM[V] = ConstantArray::get(CA->getType(), Values); } } return VM[V] = C; |
