aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ExecutionEngine
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2013-10-24 00:19:14 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2013-10-24 00:19:14 +0000
commit2ad18efdc73bc2356aa7fbf811d5ecbbaac0f2c9 (patch)
treec58ed8ddece2434506bf71f3f0bd45231a0bc4e4 /include/llvm/ExecutionEngine
parentfaf1415c4fa88b6233bca488b8ac3bb8e6a73c72 (diff)
downloadexternal_llvm-2ad18efdc73bc2356aa7fbf811d5ecbbaac0f2c9.zip
external_llvm-2ad18efdc73bc2356aa7fbf811d5ecbbaac0f2c9.tar.gz
external_llvm-2ad18efdc73bc2356aa7fbf811d5ecbbaac0f2c9.tar.bz2
Optimizing MCJIT module state tracking
Patch co-developed with Yaron Keren. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ExecutionEngine')
-rw-r--r--include/llvm/ExecutionEngine/ExecutionEngine.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h
index 10b3fed..233084d 100644
--- a/include/llvm/ExecutionEngine/ExecutionEngine.h
+++ b/include/llvm/ExecutionEngine/ExecutionEngine.h
@@ -215,7 +215,7 @@ public:
/// FindFunctionNamed - Search all of the active modules to find the one that
/// defines FnName. This is very slow operation and shouldn't be used for
/// general code.
- Function *FindFunctionNamed(const char *FnName);
+ virtual Function *FindFunctionNamed(const char *FnName);
/// runFunction - Execute the specified function with the specified arguments,
/// and return the result.
@@ -232,6 +232,9 @@ public:
///
/// This function is deprecated for the MCJIT execution engine.
///
+ /// FIXME: the JIT and MCJIT interfaces should be disentangled or united
+ /// again, if possible.
+ ///
virtual void *getPointerToNamedFunction(const std::string &Name,
bool AbortOnFailure = true) = 0;
@@ -275,7 +278,7 @@ public:
/// the static constructors or destructors for a program.
///
/// \param isDtors - Run the destructors instead of constructors.
- void runStaticConstructorsDestructors(bool isDtors);
+ virtual void runStaticConstructorsDestructors(bool isDtors);
/// runStaticConstructorsDestructors - This method is used to execute all of
/// the static constructors or destructors for a particular module.