diff options
author | Torok Edwin <edwintorok@gmail.com> | 2009-07-11 13:10:19 +0000 |
---|---|---|
committer | Torok Edwin <edwintorok@gmail.com> | 2009-07-11 13:10:19 +0000 |
commit | ccb29cd29025570f4a09f964d2b409de29a8149c (patch) | |
tree | dd5f16aa075b72c23730f876aed0c4b7f53da426 /llvm/lib/Support/CommandLine.cpp | |
parent | 20adc670b20e5f2b4cc5413e9f20287440ad41c2 (diff) | |
download | llvm-ccb29cd29025570f4a09f964d2b409de29a8149c.zip llvm-ccb29cd29025570f4a09f964d2b409de29a8149c.tar.gz llvm-ccb29cd29025570f4a09f964d2b409de29a8149c.tar.bz2 |
Convert more assert(0)+abort() -> LLVM_UNREACHABLE,
and abort()/exit() -> llvm_report_error().
llvm-svn: 75363
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index 49225602..0fe949c 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -19,6 +19,7 @@ #include "llvm/Config/config.h" #include "llvm/ADT/OwningPtr.h" #include "llvm/Support/CommandLine.h" +#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/Streams.h" @@ -204,8 +205,7 @@ static inline bool ProvideOption(Option *Handler, const char *ArgName, cerr << ProgramName << ": Bad ValueMask flag! CommandLine usage error:" << Handler->getValueExpectedFlag() << "\n"; - abort(); - break; + llvm_unreachable(); } // If this isn't a multi-arg option, just run the handler. |