projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d65460f
)
Abort when the user program calls abort, instead of printing a funny message and...
author
Brian Gaeke
<gaeke@uiuc.edu>
Wed, 5 Nov 2003 01:18:49 +0000
(
01:18
+0000)
committer
Brian Gaeke
<gaeke@uiuc.edu>
Wed, 5 Nov 2003 01:18:49 +0000
(
01:18
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9716
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
patch
|
blob
|
history
diff --git
a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
index b2c21e1ee1d04ba66a5a0dac4690f8aebd3a319d..ecf19c2f8d51726673302f419fd2e31f687719ce 100644
(file)
--- 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();
}