mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[llvm-ar] Use fail() helper to reduce duplication.
llvm-svn: 253139
This commit is contained in:
parent
8d119234ad
commit
87f81cd4cc
@ -390,10 +390,8 @@ static bool shouldCreateArchive(ArchiveOperation Op) {
|
||||
|
||||
static void performReadOperation(ArchiveOperation Operation,
|
||||
object::Archive *OldArchive) {
|
||||
if (Operation == Extract && OldArchive->isThin()) {
|
||||
errs() << "extracting from a thin archive is not supported\n";
|
||||
std::exit(1);
|
||||
}
|
||||
if (Operation == Extract && OldArchive->isThin())
|
||||
fail("extracting from a thin archive is not supported");
|
||||
|
||||
bool Filter = !Members.empty();
|
||||
for (auto &ChildOrErr : OldArchive->children()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user