diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-15 23:53:25 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-15 23:53:25 +0000 |
commit | 4fdeba97063da375ba360a021db34f025c0d9faf (patch) | |
tree | cd662afb216dfa9b654e98cc1033a4dca474d8d2 /llvm/lib/Transforms/Utils/LowerInvoke.cpp | |
parent | f060b4d9771d1035891aa458f5688ed8c12a30d4 (diff) | |
download | llvm-4fdeba97063da375ba360a021db34f025c0d9faf.zip llvm-4fdeba97063da375ba360a021db34f025c0d9faf.tar.gz llvm-4fdeba97063da375ba360a021db34f025c0d9faf.tar.bz2 |
Revert yesterday's change by removing the LLVMContext parameter to AllocaInst and MallocInst.
llvm-svn: 75863
Diffstat (limited to 'llvm/lib/Transforms/Utils/LowerInvoke.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LowerInvoke.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/LowerInvoke.cpp b/llvm/lib/Transforms/Utils/LowerInvoke.cpp index 8ba1439..fae3edf 100644 --- a/llvm/lib/Transforms/Utils/LowerInvoke.cpp +++ b/llvm/lib/Transforms/Utils/LowerInvoke.cpp @@ -417,7 +417,7 @@ splitLiveRangesLiveAcrossInvokes(std::vector<InvokeInst*> &Invokes) { // If we decided we need a spill, do it. if (NeedsSpill) { ++NumSpilled; - DemoteRegToStack(*Context, *Inst, true); + DemoteRegToStack(*Inst, true); } } } @@ -470,7 +470,7 @@ bool LowerInvoke::insertExpensiveEHSupport(Function &F) { // alloca because the value needs to be live across invokes. unsigned Align = TLI ? TLI->getJumpBufAlignment() : 0; AllocaInst *JmpBuf = - new AllocaInst(*Context, JBLinkTy, 0, Align, + new AllocaInst(JBLinkTy, 0, Align, "jblink", F.begin()->begin()); std::vector<Value*> Idx; @@ -494,7 +494,7 @@ bool LowerInvoke::insertExpensiveEHSupport(Function &F) { // Create an alloca which keeps track of which invoke is currently // executing. For normal calls it contains zero. - AllocaInst *InvokeNum = new AllocaInst(*Context, Type::Int32Ty, 0, + AllocaInst *InvokeNum = new AllocaInst(Type::Int32Ty, 0, "invokenum",EntryBB->begin()); new StoreInst(Context->getConstantInt(Type::Int32Ty, 0), InvokeNum, true, EntryBB->getTerminator()); |