llvm.org GIT mirror llvm / e06606f
[llvm-readobj] Convert to range-loops. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244300 91177308-0d34-0410-b5e6-96231b3b80d8 Davide Italiano 5 years ago
2 changed file(s) with 4 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
14501450
14511451 std::stable_sort(Libs.begin(), Libs.end());
14521452
1453 for (LibsTy::const_iterator I = Libs.begin(), E = Libs.end(); I != E; ++I) {
1454 outs() << " " << *I << "\n";
1453 for (const auto &L : Libs) {
1454 outs() << " " << L << "\n";
14551455 }
14561456 }
14571457
317317
318318 /// @brief Dumps each object file in \a Arc;
319319 static void dumpArchive(const Archive *Arc) {
320 for (Archive::child_iterator ArcI = Arc->child_begin(),
321 ArcE = Arc->child_end();
322 ArcI != ArcE; ++ArcI) {
323 ErrorOr> ChildOrErr = ArcI->getAsBinary();
320 for (const auto &Child : Arc->children()) {
321 ErrorOr> ChildOrErr = Child.getAsBinary();
324322 if (std::error_code EC = ChildOrErr.getError()) {
325323 // Ignore non-object files.
326324 if (EC != object_error::invalid_file_type)