CommandLine: Exit successfully for -version and -help

Programming / Compilers / LLVM - Justin Bogner [justinbogner.com] - 28 February 2014 13:08 UTC

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.

4ef6a7b CommandLine: Exit successfully for -version and -help
lib/Support/CommandLine.cpp | 6 +++---
test/CodeGen/Generic/print-after.ll | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)

Upstream: github.com


  • Share