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/CodeExtractor.cpp | |
parent | f060b4d9771d1035891aa458f5688ed8c12a30d4 (diff) | |
download | bcm5719-llvm-4fdeba97063da375ba360a021db34f025c0d9faf.tar.gz bcm5719-llvm-4fdeba97063da375ba360a021db34f025c0d9faf.zip |
Revert yesterday's change by removing the LLVMContext parameter to AllocaInst and MallocInst.
llvm-svn: 75863
Diffstat (limited to 'llvm/lib/Transforms/Utils/CodeExtractor.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/CodeExtractor.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/CodeExtractor.cpp b/llvm/lib/Transforms/Utils/CodeExtractor.cpp index 46e27c8c277..be02560de07 100644 --- a/llvm/lib/Transforms/Utils/CodeExtractor.cpp +++ b/llvm/lib/Transforms/Utils/CodeExtractor.cpp @@ -372,8 +372,7 @@ emitCallAndSwitchStatement(Function *newFunction, BasicBlock *codeReplacer, StructValues.push_back(*i); } else { AllocaInst *alloca = - new AllocaInst(*codeReplacer->getContext(), - (*i)->getType(), 0, (*i)->getName()+".loc", + new AllocaInst((*i)->getType(), 0, (*i)->getName()+".loc", codeReplacer->getParent()->begin()->begin()); ReloadOutputs.push_back(alloca); params.push_back(alloca); @@ -390,7 +389,7 @@ emitCallAndSwitchStatement(Function *newFunction, BasicBlock *codeReplacer, // Allocate a struct at the beginning of this function Type *StructArgTy = Context->getStructType(ArgTypes); Struct = - new AllocaInst(*codeReplacer->getContext(), StructArgTy, 0, "structArg", + new AllocaInst(StructArgTy, 0, "structArg", codeReplacer->getParent()->begin()->begin()); params.push_back(Struct); |