diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-09-30 15:51:21 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-09-30 15:51:21 +0000 |
commit | 18314dc741ab7dc4db02b199af77f43bd8551fd2 (patch) | |
tree | a071e735b15a0f19d4ab3cccb35d983018358160 /include/llvm/ExecutionEngine | |
parent | dc37786595beedd0a68d8e2cbd91ae53ad58d133 (diff) | |
download | external_llvm-18314dc741ab7dc4db02b199af77f43bd8551fd2.zip external_llvm-18314dc741ab7dc4db02b199af77f43bd8551fd2.tar.gz external_llvm-18314dc741ab7dc4db02b199af77f43bd8551fd2.tar.bz2 |
Add runStaticConstructorsDestructors which runs ctors / dtors of a single module. Patch by David Chisnall.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ExecutionEngine')
-rw-r--r-- | include/llvm/ExecutionEngine/ExecutionEngine.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h index d4fd0fb..59db630 100644 --- a/include/llvm/ExecutionEngine/ExecutionEngine.h +++ b/include/llvm/ExecutionEngine/ExecutionEngine.h @@ -157,9 +157,13 @@ public: const std::vector<GenericValue> &ArgValues) = 0; /// runStaticConstructorsDestructors - This method is used to execute all of - /// the static constructors or destructors for a module, depending on the + /// the static constructors or destructors for a program, depending on the /// value of isDtors. void runStaticConstructorsDestructors(bool isDtors); + /// runStaticConstructorsDestructors - This method is used to execute all of + /// the static constructors or destructors for a module, depending on the + /// value of isDtors. + void runStaticConstructorsDestructors(Module *module, bool isDtors); /// runFunctionAsMain - This is a helper function which wraps runFunction to |