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.
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();