From ce1960f936daa3e9d7c329e1487ff31c2060b469 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Mon, 8 Jul 2013 17:51:28 +0000 Subject: [PATCH] DebugInfo: Correct comment & re-format a nearby loop llvm-svn: 185844 --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 6b06d8b99b3d..9cf8f3c872f0 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 Entries(AddressPool.size()); - for (DenseMap::iterator - I = AddressPool.begin(), - E = AddressPool.end(); + for (DenseMap::iterator I = AddressPool.begin(), + E = AddressPool.end(); I != E; ++I) Entries[I->second] = I->first;