[llvm] r185844 - DebugInfo: Correct comment & re-format a nearby loop
David Blaikie
dblaikie at gmail.com
Mon Jul 8 10:51:28 PDT 2013
Author: dblaikie
Date: Mon Jul 8 12:51:28 2013
New Revision: 185844
URL: http://llvm.org/viewvc/llvm-project?rev=185844&view=rev
Log:
DebugInfo: Correct comment & re-format a nearby loop
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=185844&r1=185843&r2=185844&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Mon Jul 8 12:51:28 2013
@@ -2383,13 +2383,11 @@ void DwarfUnits::emitAddresses(const MCS
// Start the dwarf addr section.
Asm->OutStreamer.SwitchSection(AddrSection);
- // Get all of the address pool entries and put them in an array by their ID so
- // we can sort them.
+ // Order the address pool entries by ID
SmallVector<const MCExpr *, 64> Entries(AddressPool.size());
- for (DenseMap<const MCExpr *, unsigned>::iterator
- I = AddressPool.begin(),
- E = AddressPool.end();
+ for (DenseMap<const MCExpr *, unsigned>::iterator I = AddressPool.begin(),
+ E = AddressPool.end();
I != E; ++I)
Entries[I->second] = I->first;
More information about the llvm-commits
mailing list