aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ExecutionEngine
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-09-30 15:51:21 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-09-30 15:51:21 +0000
commit18314dc741ab7dc4db02b199af77f43bd8551fd2 (patch)
treea071e735b15a0f19d4ab3cccb35d983018358160 /include/llvm/ExecutionEngine
parentdc37786595beedd0a68d8e2cbd91ae53ad58d133 (diff)
downloadexternal_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.h6
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