Move iterator to where it's used and update comments.

llvm-svn: 185498
This commit is contained in:
Eric Christopher 2013-07-03 01:57:28 +00:00
parent 070bf1685b
commit dc42ea8fbd
1 changed files with 3 additions and 1 deletions

View File

@ -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);