llvm.org GIT mirror llvm / a846585
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 Bill Wendling 8 years ago
2 changed file(s) with 2 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
663663 // * Pass in uses as args
664664 // 3) Move code region, add call instr to func
665665 //
666 for (std::vector::const_iterator
667 I = code.begin(), E = code.end(); I != E; ++I) {
668 BasicBlock *BB = *I;
669 BlocksToExtract.insert(BB);
670 if (InvokeInst *II = dyn_cast(BB->getTerminator()))
671 BlocksToExtract.insert(II->getUnwindDest());
672 }
666 BlocksToExtract.insert(code.begin(), code.end());
673667
674668 Values inputs, outputs;
675669
793787 /// ExtractBasicBlock - slurp a basic block into a brand new function
794788 ///
795789 Function* llvm::ExtractBasicBlock(BasicBlock *BB, bool AggregateArgs) {
796 if (BB->isLandingPad()) return 0;
797790 std::vector Blocks;
798791 Blocks.push_back(BB);
799792 return CodeExtractor(0, AggregateArgs).ExtractCodeRegion(Blocks);
99 ret i32 %V
1010
1111 Unw: ; preds = %EB
12 %exn = landingpad {i8*, i32} personality i32 (...)* @__gcc_personality_v0
13 catch i8* null
14 resume { i8*, i32 } %exn
12 unwind
1513 }
1614
17 declare i32 @__gcc_personality_v0(...)