diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index b2c21e1..ecf19c2 100644 --- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/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(); } |