[llvm-readobj] Convert to range-loops.
[oota-llvm.git] / tools / llvm-readobj / ELFDumper.cpp
index efff9682d75ff71a8a5588e9e2ca9b51d9b2d20c..63a06c2bb85b97ef8c689757588df6b1ab5cda04 100644 (file)
@@ -1451,8 +1451,8 @@ void ELFDumper<ELFT>::printNeededLibraries() {
 
   std::stable_sort(Libs.begin(), Libs.end());
 
-  for (LibsTy::const_iterator I = Libs.begin(), E = Libs.end(); I != E; ++I) {
-    outs() << "  " << *I << "\n";
+  for (const auto &L : Libs) {
+    outs() << "  " << L << "\n";
   }
 }