mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Start using the nicer terminator auto-insertion API
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10111 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -344,12 +344,10 @@ void insertBB(Edge ed,
|
||||
newBB->getInstList().push_back(newBI2);
|
||||
|
||||
//triggerBB->getInstList().push_back(triggerInst);
|
||||
Instruction *triggerBranch = new BranchInst(BB2);
|
||||
triggerBB->getInstList().push_back(triggerBranch);
|
||||
new BranchInst(BB2, 0, 0, triggerBB);
|
||||
}
|
||||
else{
|
||||
Instruction *newBI2=new BranchInst(BB2);
|
||||
newBB->getInstList().push_back(newBI2);
|
||||
new BranchInst(BB2, 0, 0, newBB);
|
||||
}
|
||||
|
||||
//now iterate over BB2, and set its Phi nodes right
|
||||
|
||||
Reference in New Issue
Block a user