llvm.org GIT mirror llvm / c83882c
[llvm-objdump] Range-loopify. NFC intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243905 91177308-0d34-0410-b5e6-96231b3b80d8 Davide Italiano 5 years ago
1 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
15201520
15211521 /// @brief Dump each object file in \a a;
15221522 static void DumpArchive(const Archive *a) {
1523 for (Archive::child_iterator i = a->child_begin(), e = a->child_end(); i != e;
1524 ++i) {
1525 ErrorOr> ChildOrErr = i->getAsBinary();
1523 for (const Archive::Child &C : a->children()) {
1524 ErrorOr> ChildOrErr = C.getAsBinary();
15261525 if (std::error_code EC = ChildOrErr.getError()) {
15271526 // Ignore non-object files.
15281527 if (EC != object_error::invalid_file_type)