llvm.org GIT mirror llvm / 8baf5a3
[llvm-ar] Use fail() helper to reduce duplication. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253139 91177308-0d34-0410-b5e6-96231b3b80d8 Davide Italiano 3 years ago
1 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
389389
390390 static void performReadOperation(ArchiveOperation Operation,
391391 object::Archive *OldArchive) {
392 if (Operation == Extract && OldArchive->isThin()) {
393 errs() << "extracting from a thin archive is not supported\n";
394 std::exit(1);
395 }
392 if (Operation == Extract && OldArchive->isThin())
393 fail("extracting from a thin archive is not supported");
396394
397395 bool Filter = !Members.empty();
398396 for (auto &ChildOrErr : OldArchive->children()) {