diff options
author | Chris Lattner <sabre@nondot.org> | 2003-12-26 06:13:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-12-26 06:13:47 +0000 |
commit | ff0f1bb32a439cf82cb09ee29544c894a2bfe877 (patch) | |
tree | f681403fb0cf5080b4013e2625f286aec817fae1 /lib/ExecutionEngine/JIT/Intercept.cpp | |
parent | 2cab55d7e1bde83cd5f5dccee9a331ada8c1a67c (diff) |
No longer run atExit functions from run()
rename run to runFunction
Genericize the runFunction code a little bit, though it still stinks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10610 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/Intercept.cpp')
-rw-r--r-- | lib/ExecutionEngine/JIT/Intercept.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/JIT/Intercept.cpp b/lib/ExecutionEngine/JIT/Intercept.cpp index 5d256f9007..0b1b976836 100644 --- a/lib/ExecutionEngine/JIT/Intercept.cpp +++ b/lib/ExecutionEngine/JIT/Intercept.cpp @@ -28,7 +28,7 @@ static std::vector<void (*)()> AtExitHandlers; /// calls to atexit(3), which we intercept and store in /// AtExitHandlers. /// -void JIT::runAtExitHandlers() { +static void runAtExitHandlers() { while (!AtExitHandlers.empty()) { void (*Fn)() = AtExitHandlers.back(); AtExitHandlers.pop_back(); @@ -45,7 +45,7 @@ static void NoopFn() {} // jit_exit - Used to intercept the "exit" library call. static void jit_exit(int Status) { - JIT::runAtExitHandlers(); // Run atexit handlers... + runAtExitHandlers(); // Run atexit handlers... exit(Status); } |