diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-07-08 17:51:28 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-07-08 17:51:28 +0000 |
commit | 66f464ee266b31bb02058c49a5abe3a6b77f080b (patch) | |
tree | 14c7c91ec37b080eb1ff026f3e6d0b06528e9803 /lib | |
parent | 5e915e6e364532ed00b4c5508e59b42f608b5244 (diff) | |
download | external_llvm-66f464ee266b31bb02058c49a5abe3a6b77f080b.zip external_llvm-66f464ee266b31bb02058c49a5abe3a6b77f080b.tar.gz external_llvm-66f464ee266b31bb02058c49a5abe3a6b77f080b.tar.bz2 |
DebugInfo: Correct comment & re-format a nearby loop
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185844 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 6b06d8b..9cf8f3c 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/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; |