mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-23 05:29:23 +00:00
Move iterator to where it's used and update comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185498 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c9c17a8e4f
commit
f53d643bd9
@ -443,7 +443,7 @@ DIE *DwarfDebug::constructLexicalScopeDIE(CompileUnit *TheCU,
|
||||
if (Ranges.empty())
|
||||
return 0;
|
||||
|
||||
SmallVector<InsnRange, 4>::const_iterator RI = Ranges.begin();
|
||||
// If we have multiple ranges, emit them into the range section.
|
||||
if (Ranges.size() > 1) {
|
||||
// .debug_range section has not been laid out yet. Emit offset in
|
||||
// .debug_range as a uint, size 4, for now. emitDIE will handle
|
||||
@ -463,6 +463,8 @@ DIE *DwarfDebug::constructLexicalScopeDIE(CompileUnit *TheCU,
|
||||
return ScopeDIE;
|
||||
}
|
||||
|
||||
// Construct the address range for this DIE.
|
||||
SmallVector<InsnRange, 4>::const_iterator RI = Ranges.begin();
|
||||
MCSymbol *Start = getLabelBeforeInsn(RI->first);
|
||||
MCSymbol *End = getLabelAfterInsn(RI->second);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user