No longer run atExit functions from run()
rename run to runFunction llvm-svn: 10609
This commit is contained in:
parent
ad024c3de5
commit
d94296c620
|
@ -69,7 +69,7 @@ void Interpreter::runAtExitHandlers () {
|
||||||
|
|
||||||
/// run - Start execution with the specified function and arguments.
|
/// run - Start execution with the specified function and arguments.
|
||||||
///
|
///
|
||||||
GenericValue Interpreter::run(Function *F,
|
GenericValue Interpreter::runFunction(Function *F,
|
||||||
const std::vector<GenericValue> &ArgValues) {
|
const std::vector<GenericValue> &ArgValues) {
|
||||||
assert (F && "Function *F was null at entry to run()");
|
assert (F && "Function *F was null at entry to run()");
|
||||||
|
|
||||||
|
@ -91,9 +91,6 @@ GenericValue Interpreter::run(Function *F,
|
||||||
// Start executing the function.
|
// Start executing the function.
|
||||||
run();
|
run();
|
||||||
|
|
||||||
// Run any atexit handlers now!
|
|
||||||
runAtExitHandlers();
|
|
||||||
|
|
||||||
GenericValue rv;
|
GenericValue rv;
|
||||||
rv.IntVal = ExitCode;
|
rv.IntVal = ExitCode;
|
||||||
return rv;
|
return rv;
|
||||||
|
|
|
@ -92,9 +92,8 @@ public:
|
||||||
Interpreter(Module *M, bool isLittleEndian, bool isLongPointer);
|
Interpreter(Module *M, bool isLittleEndian, bool isLongPointer);
|
||||||
inline ~Interpreter() { }
|
inline ~Interpreter() { }
|
||||||
|
|
||||||
/// runAtExitHandlers - Run any functions registered by the
|
/// runAtExitHandlers - Run any functions registered by the program's calls to
|
||||||
/// program's calls to atexit(3), which we intercept and store in
|
/// atexit(3), which we intercept and store in AtExitHandlers.
|
||||||
/// AtExitHandlers.
|
|
||||||
///
|
///
|
||||||
void runAtExitHandlers();
|
void runAtExitHandlers();
|
||||||
|
|
||||||
|
@ -104,7 +103,7 @@ public:
|
||||||
|
|
||||||
/// run - Start execution with the specified function and arguments.
|
/// run - Start execution with the specified function and arguments.
|
||||||
///
|
///
|
||||||
virtual GenericValue run(Function *F,
|
virtual GenericValue runFunction(Function *F,
|
||||||
const std::vector<GenericValue> &ArgValues);
|
const std::vector<GenericValue> &ArgValues);
|
||||||
|
|
||||||
/// recompileAndRelinkFunction - For the interpreter, functions are always
|
/// recompileAndRelinkFunction - For the interpreter, functions are always
|
||||||
|
|
Loading…
Reference in New Issue