diff options
author | Eric Christopher <echristo@gmail.com> | 2013-07-03 01:57:28 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-07-03 01:57:28 +0000 |
commit | f53d643bd9f9e0d13214f78274fc021d6c03765d (patch) | |
tree | 3b23ac45010c0b46914a2d10ac7296b74b1dfcf2 | |
parent | c9c17a8e4f7d11061fef4e644ba870c2fb47118b (diff) | |
download | external_llvm-f53d643bd9f9e0d13214f78274fc021d6c03765d.zip external_llvm-f53d643bd9f9e0d13214f78274fc021d6c03765d.tar.gz external_llvm-f53d643bd9f9e0d13214f78274fc021d6c03765d.tar.bz2 |
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
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 24e04f4..70b9df4 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/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); |