[llvm-commits] CVS: llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Nov 4 19:20:02 PST 2003
Changes in directory llvm/lib/ExecutionEngine/Interpreter:
ExternalFunctions.cpp updated: 1.66 -> 1.67
---
Log message:
Abort when the user program calls abort, instead of printing a funny message and calling exit(1).
---
Diffs of the changes: (+2 -4)
Index: llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
diff -u llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp:1.66 llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp:1.67
--- llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp:1.66 Sat Oct 25 11:18:03 2003
+++ llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp Tue Nov 4 19:18:49 2003
@@ -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 @@
// 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();
}
More information about the llvm-commits
mailing list