[llvm] r211986 - Use a range loop. No functionality change.
Rafael Espindola
rafael.espindola at gmail.com
Sat Jun 28 11:45:00 PDT 2014
Author: rafael
Date: Sat Jun 28 13:44:59 2014
New Revision: 211986
URL: http://llvm.org/viewvc/llvm-project?rev=211986&view=rev
Log:
Use a range loop. No functionality change.
Modified:
llvm/trunk/lib/LTO/LTOModule.cpp
Modified: llvm/trunk/lib/LTO/LTOModule.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LTO/LTOModule.cpp?rev=211986&r1=211985&r2=211986&view=diff
==============================================================================
--- llvm/trunk/lib/LTO/LTOModule.cpp (original)
+++ llvm/trunk/lib/LTO/LTOModule.cpp Sat Jun 28 13:44:59 2014
@@ -682,10 +682,9 @@ bool LTOModule::addAsmGlobalSymbols(std:
if (Parser->Run(false))
return true;
- for (RecordStreamer::const_iterator i = Streamer->begin(),
- e = Streamer->end(); i != e; ++i) {
- StringRef Key = i->first();
- RecordStreamer::State Value = i->second;
+ for (auto &KV : *Streamer) {
+ StringRef Key = KV.first();
+ RecordStreamer::State Value = KV.second;
if (Value == RecordStreamer::DefinedGlobal)
addAsmGlobalSymbol(Key.data(), LTO_SYMBOL_SCOPE_DEFAULT);
else if (Value == RecordStreamer::Defined)
More information about the llvm-commits
mailing list