Tools that use the CommandLine library currently exit with an error
when invoked with -version or -help. This is unusual and non-standard,
so we'll fix them to exit successfully instead.
I don't expect that anyone relies on the current behaviour, so this
should be a fairly safe change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202530
91177308-0d34-0410-b5e6-
96231b3b80d8
MoreHelp->clear();
// Halt the program since help information was printed
MoreHelp->clear();
// Halt the program since help information was printed
if (OverrideVersionPrinter != 0) {
(*OverrideVersionPrinter)();
if (OverrideVersionPrinter != 0) {
(*OverrideVersionPrinter)();
}
};
} // End anonymous namespace
}
};
} // End anonymous namespace
-; RUN: not llc --help-hidden 2>&1 | FileCheck %s
+; RUN: llc --help-hidden 2>&1 | FileCheck %s
; CHECK: -print-after
; CHECK-NOT: -print-after-all
; CHECK: -print-after
; CHECK-NOT: -print-after-all