aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit3046470919e648ff7c011bda9c094163062c83dc (patch)
tree104f9265d22072e95f7562c76e156907e6663cf7 /lib/Target/CppBackend
parentdac237e18209b697a8ba122d0ddd9cad4dfba1f8 (diff)
downloadexternal_llvm-3046470919e648ff7c011bda9c094163062c83dc.zip
external_llvm-3046470919e648ff7c011bda9c094163062c83dc.tar.gz
external_llvm-3046470919e648ff7c011bda9c094163062c83dc.tar.bz2
Missed an exit during the conversion.
Will convert assert(0) that don't have abort() to LLVM_UNREACHABLE in a later commit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75045 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CppBackend')
-rw-r--r--lib/Target/CppBackend/CPPBackend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp
index 28f58e8..6c48ae8 100644
--- a/lib/Target/CppBackend/CPPBackend.cpp
+++ b/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 :)