DebugInfo: Correct comment & re-format a nearby loop
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 8 Jul 2013 17:51:28 +0000 (17:51 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 8 Jul 2013 17:51:28 +0000 (17:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185844 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index 6b06d8b99b3d72a17eafbc9c327e07c0a515ef31..9cf8f3c872f0b452f8467388428af3ed12bd8f2c 100644 (file)
@@ -2383,13 +2383,11 @@ void DwarfUnits::emitAddresses(const MCSection *AddrSection) {
   // 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;