llvm.org GIT mirror llvm / 1c1a446
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 Chris Lattner 13 years ago
1 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
6262 class ExecutionEngine {
6363 const TargetData *TD;
6464 ExecutionEngineState state;
65 bool LazyCompilationDisabled;
6566 protected:
6667 /// Modules - This is a list of ModuleProvider's that we are JIT'ing from. We
6768 /// use a smallvector to optimize for the case where there is only one module.
196197 virtual void *getOrEmitGlobalVariable(const GlobalVariable *GV) {
197198 return getPointerToGlobal((GlobalValue*)GV);
198199 }
200
201 /// DisableLazyCompilation - If called, the JIT will abort if lazy compilation
202 // is ever attempted.
203 void DisableLazyCompilation() {
204 LazyCompilationDisabled = true;
205 }
206 bool isLazyCompilationDisabled() const {
207 return LazyCompilationDisabled;
208 }
199209
200210 protected:
201211 void emitGlobals();