diff options
author | Chris Lattner <sabre@nondot.org> | 2006-11-09 19:30:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-11-09 19:30:47 +0000 |
commit | 1c1a44699049cf56713a46ccaef7c747e4a888a3 (patch) | |
tree | 903bea8f1579133dbb5e784b98f24f229f1a6f8a /include/llvm/ExecutionEngine/ExecutionEngine.h | |
parent | cd633192272c9c433af6f40621b2bf5a38a68f30 (diff) |
allow clients to indicate that they never want lazy compilation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31600 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ExecutionEngine/ExecutionEngine.h')
-rw-r--r-- | include/llvm/ExecutionEngine/ExecutionEngine.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h index 828cd3a962..c2f8fed70d 100644 --- a/include/llvm/ExecutionEngine/ExecutionEngine.h +++ b/include/llvm/ExecutionEngine/ExecutionEngine.h @@ -63,6 +63,7 @@ public: class ExecutionEngine { const TargetData *TD; ExecutionEngineState state; + bool LazyCompilationDisabled; protected: /// Modules - This is a list of ModuleProvider's that we are JIT'ing from. We /// use a smallvector to optimize for the case where there is only one module. @@ -197,6 +198,15 @@ public: virtual void *getOrEmitGlobalVariable(const GlobalVariable *GV) { return getPointerToGlobal((GlobalValue*)GV); } + + /// DisableLazyCompilation - If called, the JIT will abort if lazy compilation + // is ever attempted. + void DisableLazyCompilation() { + LazyCompilationDisabled = true; + } + bool isLazyCompilationDisabled() const { + return LazyCompilationDisabled; + } protected: void emitGlobals(); |