mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
The split bb is really the exit of the old function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18799 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3680e84877
commit
284d1b8827
@ -237,14 +237,14 @@ bool llvm::InlineFunction(CallSite CS) {
|
|||||||
// updated due to new incoming edges, and make the invoke case more
|
// updated due to new incoming edges, and make the invoke case more
|
||||||
// symmetric to the call case.
|
// symmetric to the call case.
|
||||||
AfterCallBB = OrigBB->splitBasicBlock(NewBr,
|
AfterCallBB = OrigBB->splitBasicBlock(NewBr,
|
||||||
CalledFunc->getName()+".entry");
|
CalledFunc->getName()+".exit");
|
||||||
|
|
||||||
} else { // It's a call
|
} else { // It's a call
|
||||||
// If this is a call instruction, we need to split the basic block that
|
// If this is a call instruction, we need to split the basic block that
|
||||||
// the call lives in.
|
// the call lives in.
|
||||||
//
|
//
|
||||||
AfterCallBB = OrigBB->splitBasicBlock(TheCall,
|
AfterCallBB = OrigBB->splitBasicBlock(TheCall,
|
||||||
CalledFunc->getName()+".entry");
|
CalledFunc->getName()+".exit");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change the branch that used to go to AfterCallBB to branch to the first
|
// Change the branch that used to go to AfterCallBB to branch to the first
|
||||||
|
Loading…
x
Reference in New Issue
Block a user