No longer run atExit functions from run()
authorChris Lattner <sabre@nondot.org>
Fri, 26 Dec 2003 06:13:05 +0000 (06:13 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 26 Dec 2003 06:13:05 +0000 (06:13 +0000)
rename run to runFunction

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10609 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Interpreter/Interpreter.cpp
lib/ExecutionEngine/Interpreter/Interpreter.h

index 663d9a6b36b08b78f3a5138683164e90c16ab64e..77c008730ff1565166adbe0e9908daae44fbd8d0 100644 (file)
@@ -69,7 +69,7 @@ void Interpreter::runAtExitHandlers () {
 
 /// 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 @@ GenericValue Interpreter::run(Function *F,
   // Start executing the function.
   run();
   
-  // Run any atexit handlers now!
-  runAtExitHandlers();
-
   GenericValue rv;
   rv.IntVal = ExitCode;
   return rv;
index f8bd316517cfbc81fa403498bba2e664f8c16299..1f50777351f3c48fbd1263460f738e15044f0a52 100644 (file)
@@ -92,11 +92,10 @@ public:
   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 @@ public:
 
   /// 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.