mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Revert r140083 and r140084 until buildbots can be fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140094 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f11750633d
commit
a846585050
@ -664,13 +664,7 @@ ExtractCodeRegion(const std::vector<BasicBlock*> &code) {
|
||||
// * Pass in uses as args
|
||||
// 3) Move code region, add call instr to func
|
||||
//
|
||||
for (std::vector<BasicBlock*>::const_iterator
|
||||
I = code.begin(), E = code.end(); I != E; ++I) {
|
||||
BasicBlock *BB = *I;
|
||||
BlocksToExtract.insert(BB);
|
||||
if (InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator()))
|
||||
BlocksToExtract.insert(II->getUnwindDest());
|
||||
}
|
||||
BlocksToExtract.insert(code.begin(), code.end());
|
||||
|
||||
Values inputs, outputs;
|
||||
|
||||
@ -794,7 +788,6 @@ Function* llvm::ExtractLoop(DominatorTree &DT, Loop *L, bool AggregateArgs) {
|
||||
/// ExtractBasicBlock - slurp a basic block into a brand new function
|
||||
///
|
||||
Function* llvm::ExtractBasicBlock(BasicBlock *BB, bool AggregateArgs) {
|
||||
if (BB->isLandingPad()) return 0;
|
||||
std::vector<BasicBlock*> Blocks;
|
||||
Blocks.push_back(BB);
|
||||
return CodeExtractor(0, AggregateArgs).ExtractCodeRegion(Blocks);
|
||||
|
@ -10,9 +10,6 @@ Cont: ; preds = %EB
|
||||
ret i32 %V
|
||||
|
||||
Unw: ; preds = %EB
|
||||
%exn = landingpad {i8*, i32} personality i32 (...)* @__gcc_personality_v0
|
||||
catch i8* null
|
||||
resume { i8*, i32 } %exn
|
||||
unwind
|
||||
}
|
||||
|
||||
declare i32 @__gcc_personality_v0(...)
|
||||
|
Loading…
Reference in New Issue
Block a user