mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-26 23:29:22 +00:00
Refine further the scope where the global DebugLoc value is active.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101443 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4b67bc1e80
commit
f89d1dc9b7
@ -256,15 +256,13 @@ void SelectionDAGISel::SelectBasicBlock(const BasicBlock *LLVMBB,
|
||||
SDB->setCurrentBasicBlock(BB);
|
||||
|
||||
// Lower all of the non-terminator instructions. If a call is emitted
|
||||
// as a tail call, cease emitting nodes for this block.
|
||||
// as a tail call, cease emitting nodes for this block. Terminators
|
||||
// are handled below.
|
||||
for (BasicBlock::const_iterator I = Begin;
|
||||
I != End && !SDB->HasTailCall; ++I) {
|
||||
I != End && !SDB->HasTailCall && !isa<TerminatorInst>(I);
|
||||
++I) {
|
||||
SetDebugLoc(I, SDB, 0, MF);
|
||||
|
||||
// Visit the instruction. Terminators are handled below.
|
||||
if (!isa<TerminatorInst>(I))
|
||||
SDB->visit(*I);
|
||||
|
||||
SDB->visit(*I);
|
||||
ResetDebugLoc(SDB, 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user