summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-11-05 01:18:49 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-11-05 01:18:49 +0000
commit4e106f06499141ba811fff2f8231f0e01f11bee0 (patch)
treecdc009959c79fa42b9f9b4de83e0d23b1042c3f4 /llvm/lib
parent8f2f598024797107e29785ccda5d7d3dbc61616a (diff)
downloadbcm5719-llvm-4e106f06499141ba811fff2f8231f0e01f11bee0.tar.gz
bcm5719-llvm-4e106f06499141ba811fff2f8231f0e01f11bee0.zip
Abort when the user program calls abort, instead of printing a funny message and calling exit(1).
llvm-svn: 9716
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
index b2c21e1ee1d..ecf19c2f8d5 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
@@ -28,6 +28,7 @@
#include "Config/dlfcn.h"
#include "Config/link.h"
#include <cmath>
+#include <csignal>
#include <map>
using std::vector;
@@ -142,10 +143,7 @@ GenericValue lle_X_exit(FunctionType *M, const vector<GenericValue> &Args) {
// void abort(void)
GenericValue lle_X_abort(FunctionType *M, const vector<GenericValue> &Args) {
- std::cerr << "***PROGRAM ABORTED***!\n";
- GenericValue GV;
- GV.IntVal = 1;
- TheInterpreter->exitCalled(GV);
+ raise (SIGABRT);
return GenericValue();
}
OpenPOWER on IntegriCloud