mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-14 07:29:01 +00:00
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
This commit is contained in:
parent
cd63319227
commit
1c1a446990
@ -63,6 +63,7 @@ public:
|
|||||||
class ExecutionEngine {
|
class ExecutionEngine {
|
||||||
const TargetData *TD;
|
const TargetData *TD;
|
||||||
ExecutionEngineState state;
|
ExecutionEngineState state;
|
||||||
|
bool LazyCompilationDisabled;
|
||||||
protected:
|
protected:
|
||||||
/// Modules - This is a list of ModuleProvider's that we are JIT'ing from. We
|
/// 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.
|
/// 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) {
|
virtual void *getOrEmitGlobalVariable(const GlobalVariable *GV) {
|
||||||
return getPointerToGlobal((GlobalValue*)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:
|
protected:
|
||||||
void emitGlobals();
|
void emitGlobals();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user