mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 16:40:15 +00:00
allow clients to indicate that they never want lazy compilation.
llvm-svn: 31600
This commit is contained in:
parent
d7df1a37bc
commit
89e9bb620a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user