mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +00:00
Object: Add range iterators for Archive children
No functional change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218471 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -137,10 +137,8 @@ static void dumpVTables(const ObjectFile *Obj) {
|
||||
}
|
||||
|
||||
static void dumpArchive(const Archive *Arc) {
|
||||
for (Archive::child_iterator ArcI = Arc->child_begin(),
|
||||
ArcE = Arc->child_end();
|
||||
ArcI != ArcE; ++ArcI) {
|
||||
ErrorOr<std::unique_ptr<Binary>> ChildOrErr = ArcI->getAsBinary();
|
||||
for (const Archive::Child &ArcC : Arc->children()) {
|
||||
ErrorOr<std::unique_ptr<Binary>> ChildOrErr = ArcC.getAsBinary();
|
||||
if (std::error_code EC = ChildOrErr.getError()) {
|
||||
// Ignore non-object files.
|
||||
if (EC != object_error::invalid_file_type)
|
||||
|
Reference in New Issue
Block a user