summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-07-08 17:51:28 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-07-08 17:51:28 +0000
commitce1960f936daa3e9d7c329e1487ff31c2060b469 (patch)
treeb1421a5ef3d14d4ebc799df8853149fda51b6f5a /llvm/lib/CodeGen
parentefc4c01ed32d5dfd34365a3392c22b0a0ac070a8 (diff)
downloadbcm5719-llvm-ce1960f936daa3e9d7c329e1487ff31c2060b469.tar.gz
bcm5719-llvm-ce1960f936daa3e9d7c329e1487ff31c2060b469.zip
DebugInfo: Correct comment & re-format a nearby loop
llvm-svn: 185844
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 6b06d8b99b3..9cf8f3c872f 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -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;
OpenPOWER on IntegriCloud