1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 11:33:24 +02:00

DebugInfo: Correct comment & re-format a nearby loop

llvm-svn: 185844
This commit is contained in:
David Blaikie 2013-07-08 17:51:28 +00:00
parent a6173e9a56
commit b236f97d1a

View 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;