summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-07-03 01:57:28 +0000
committerEric Christopher <echristo@gmail.com>2013-07-03 01:57:28 +0000
commitdc42ea8fbd8586eb8a62f18bfb205ae9aa0a05df (patch)
treec65f8a9b92a85fa9a75fffa17bf6f065445a190e /llvm/lib/CodeGen
parent070bf1685be863bde10c763b29407c8cd39f51f7 (diff)
downloadbcm5719-llvm-dc42ea8fbd8586eb8a62f18bfb205ae9aa0a05df.tar.gz
bcm5719-llvm-dc42ea8fbd8586eb8a62f18bfb205ae9aa0a05df.zip
Move iterator to where it's used and update comments.
llvm-svn: 185498
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 24e04f49caf..70b9df483fc 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -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);
OpenPOWER on IntegriCloud