diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-08 18:42:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-08 18:42:46 +0000 |
commit | 9ca6cdaee91fddcd3ea57dedcd624c14c7a40f65 (patch) | |
tree | 2b2cf4e2c91c95c2c114cc981ab2fcaaf1c297c2 /include/llvm/ExecutionEngine | |
parent | 9d25824e4ca45b7269aacaa92f02a5e9fa8a8e5c (diff) | |
download | external_llvm-9ca6cdaee91fddcd3ea57dedcd624c14c7a40f65.zip external_llvm-9ca6cdaee91fddcd3ea57dedcd624c14c7a40f65.tar.gz external_llvm-9ca6cdaee91fddcd3ea57dedcd624c14c7a40f65.tar.bz2 |
Add a helper method for running static ctors/dtors in the module.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26619 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ExecutionEngine')
-rw-r--r-- | include/llvm/ExecutionEngine/ExecutionEngine.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h index 301b6d6..6b248e5 100644 --- a/include/llvm/ExecutionEngine/ExecutionEngine.h +++ b/include/llvm/ExecutionEngine/ExecutionEngine.h @@ -95,6 +95,12 @@ public: virtual GenericValue runFunction(Function *F, 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 + /// value of isDtors. + void runStaticConstructorsDestructors(bool isDtors); + + /// runFunctionAsMain - This is a helper function which wraps runFunction to /// handle the common task of starting up main with the specified argc, argv, /// and envp parameters. |