[llvm-commits] CVS: llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp Interpreter.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Dec 26 00:14:04 PST 2003
Changes in directory llvm/lib/ExecutionEngine/Interpreter:
Interpreter.cpp updated: 1.18 -> 1.19
Interpreter.h updated: 1.57 -> 1.58
---
Log message:
No longer run atExit functions from run()
rename run to runFunction
---
Diffs of the changes: (+6 -10)
Index: llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp
diff -u llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp:1.18 llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp:1.19
--- llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp:1.18 Sun Dec 14 17:25:48 2003
+++ llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp Fri Dec 26 00:13:05 2003
@@ -69,7 +69,7 @@
/// run - Start execution with the specified function and arguments.
///
-GenericValue Interpreter::run(Function *F,
+GenericValue Interpreter::runFunction(Function *F,
const std::vector<GenericValue> &ArgValues) {
assert (F && "Function *F was null at entry to run()");
@@ -91,9 +91,6 @@
// Start executing the function.
run();
- // Run any atexit handlers now!
- runAtExitHandlers();
-
GenericValue rv;
rv.IntVal = ExitCode;
return rv;
Index: llvm/lib/ExecutionEngine/Interpreter/Interpreter.h
diff -u llvm/lib/ExecutionEngine/Interpreter/Interpreter.h:1.57 llvm/lib/ExecutionEngine/Interpreter/Interpreter.h:1.58
--- llvm/lib/ExecutionEngine/Interpreter/Interpreter.h:1.57 Wed Dec 10 18:23:28 2003
+++ llvm/lib/ExecutionEngine/Interpreter/Interpreter.h Fri Dec 26 00:13:05 2003
@@ -92,11 +92,10 @@
Interpreter(Module *M, bool isLittleEndian, bool isLongPointer);
inline ~Interpreter() { }
- /// runAtExitHandlers - Run any functions registered by the
- /// program's calls to atexit(3), which we intercept and store in
- /// AtExitHandlers.
+ /// runAtExitHandlers - Run any functions registered by the program's calls to
+ /// atexit(3), which we intercept and store in AtExitHandlers.
///
- void runAtExitHandlers ();
+ void runAtExitHandlers();
/// create - Create an interpreter ExecutionEngine. This can never fail.
///
@@ -104,8 +103,8 @@
/// run - Start execution with the specified function and arguments.
///
- virtual GenericValue run(Function *F,
- const std::vector<GenericValue> &ArgValues);
+ virtual GenericValue runFunction(Function *F,
+ const std::vector<GenericValue> &ArgValues);
/// recompileAndRelinkFunction - For the interpreter, functions are always
/// up-to-date.
More information about the llvm-commits
mailing list