From b56a6bc96a483b47da71b24efaa4380d463bbe17 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Wed, 5 Nov 2003 01:18:49 +0000 Subject: Abort when the user program calls abort, instead of printing a funny message and calling exit(1). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9716 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/ExecutionEngine') 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 +#include #include using std::vector; @@ -142,10 +143,7 @@ GenericValue lle_X_exit(FunctionType *M, const vector &Args) { // void abort(void) GenericValue lle_X_abort(FunctionType *M, const vector &Args) { - std::cerr << "***PROGRAM ABORTED***!\n"; - GenericValue GV; - GV.IntVal = 1; - TheInterpreter->exitCalled(GV); + raise (SIGABRT); return GenericValue(); } -- cgit v1.1