summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CppBackend
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2009-07-08 20:55:50 +0000
committerTorok Edwin <edwintorok@gmail.com>2009-07-08 20:55:50 +0000
commitf8d479c1ce8e859d8bb0a67416f67410ece6e989 (patch)
treeee65841a0d2ead18cddf6b4ffa342ccb4e5ff07e /llvm/lib/Target/CppBackend
parent9b146587139824611ccba814da4b36ce7319d0ca (diff)
downloadbcm5719-llvm-f8d479c1ce8e859d8bb0a67416f67410ece6e989.tar.gz
bcm5719-llvm-f8d479c1ce8e859d8bb0a67416f67410ece6e989.zip
Missed an exit during the conversion.
Will convert assert(0) that don't have abort() to LLVM_UNREACHABLE in a later commit. llvm-svn: 75045
Diffstat (limited to 'llvm/lib/Target/CppBackend')
-rw-r--r--llvm/lib/Target/CppBackend/CPPBackend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp
index 28f58e86f62..6c48ae8d270 100644
--- a/llvm/lib/Target/CppBackend/CPPBackend.cpp
+++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp
@@ -28,6 +28,7 @@
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/Support/CommandLine.h"
+#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Streams.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Config/config.h"
@@ -220,8 +221,7 @@ namespace {
}
void CppWriter::error(const std::string& msg) {
- cerr << msg << "\n";
- exit(2);
+ llvm_report_error(msg);
}
// printCFP - Print a floating point constant .. very carefully :)
OpenPOWER on IntegriCloud