aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
authorEdwin Török <edwintorok@gmail.com>2009-07-11 13:10:19 +0000
committerEdwin Török <edwintorok@gmail.com>2009-07-11 13:10:19 +0000
commitced9ff8ea2fac344da91d925294817ad51f51e06 (patch)
tree948cd8ec42ea724903f0789140bdbfd4f11241dc /lib/Support
parent141d4c5676bcbfc3733eee26771505b39ba4ce99 (diff)
downloadexternal_llvm-ced9ff8ea2fac344da91d925294817ad51f51e06.zip
external_llvm-ced9ff8ea2fac344da91d925294817ad51f51e06.tar.gz
external_llvm-ced9ff8ea2fac344da91d925294817ad51f51e06.tar.bz2
Convert more assert(0)+abort() -> LLVM_UNREACHABLE,
and abort()/exit() -> llvm_report_error(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75363 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/CommandLine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp
index 4922560..0fe949c 100644
--- a/lib/Support/CommandLine.cpp
+++ b/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.