[llvm-commits] [llvm] r147693 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
Eric Christopher
echristo at apple.com
Fri Jan 6 15:03:28 PST 2012
Author: echristo
Date: Fri Jan 6 17:03:27 2012
New Revision: 147693
URL: http://llvm.org/viewvc/llvm-project?rev=147693&view=rev
Log:
Use -> instead of (*iter).
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp?rev=147693&r1=147692&r2=147693&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp Fri Jan 6 17:03:27 2012
@@ -53,8 +53,8 @@
delete Data[i];
for (StringMap<DataArray>::iterator
EI = Entries.begin(), EE = Entries.end(); EI != EE; ++EI)
- for (DataArray::iterator DI = (*EI).second.begin(),
- DE = (*EI).second.end(); DI != DE; ++DI)
+ for (DataArray::iterator DI = EI->second.begin(),
+ DE = EI->second.end(); DI != DE; ++DI)
delete (*DI);
}
@@ -101,12 +101,12 @@
struct HashData *Entry = new HashData((*EI).getKeyData());
// Unique the entries.
- std::stable_sort((*EI).second.begin(), (*EI).second.end(), DIESorter());
- (*EI).second.erase(std::unique((*EI).second.begin(), (*EI).second.end()),
- (*EI).second.end());
+ std::stable_sort(EI->second.begin(), EI->second.end(), DIESorter());
+ EI->second.erase(std::unique(EI->second.begin(), EI->second.end()),
+ EI->second.end());
- for (DataArray::const_iterator DI = (*EI).second.begin(),
- DE = (*EI).second.end();
+ for (DataArray::const_iterator DI = EI->second.begin(),
+ DE = EI->second.end();
DI != DE; ++DI)
Entry->addData((*DI));
Data.push_back(Entry);
@@ -263,9 +263,9 @@
O << "Entries: \n";
for (StringMap<DataArray>::const_iterator
EI = Entries.begin(), EE = Entries.end(); EI != EE; ++EI) {
- O << "Name: " << (*EI).getKeyData() << "\n";
- for (DataArray::const_iterator DI = (*EI).second.begin(),
- DE = (*EI).second.end();
+ O << "Name: " << EI->getKeyData() << "\n";
+ for (DataArray::const_iterator DI = EI->second.begin(),
+ DE = EI->second.end();
DI != DE; ++DI)
(*DI)->print(O);
}
More information about the llvm-commits
mailing list