mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Revert the API changes from r85295 to make it easier for people to build
against both 2.6 and HEAD. The default is still changed to eager jitting. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85330 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -319,7 +319,7 @@ public:
|
||||
virtual void RegisterJITEventListener(JITEventListener *) {}
|
||||
virtual void UnregisterJITEventListener(JITEventListener *) {}
|
||||
|
||||
/// EnableLazyCompilation - When lazy compilation is off (the default), the
|
||||
/// DisableLazyCompilation - When lazy compilation is off (the default), the
|
||||
/// JIT will eagerly compile every function reachable from the argument to
|
||||
/// getPointerToFunction. If lazy compilation is turned on, the JIT will only
|
||||
/// compile the one function and emit stubs to compile the rest when they're
|
||||
@@ -332,12 +332,17 @@ public:
|
||||
/// stub, and 2) any thread modifying LLVM IR must hold the JIT's lock
|
||||
/// (ExecutionEngine::lock) or otherwise ensure that no other thread calls a
|
||||
/// lazy stub. See http://llvm.org/PR5184 for details.
|
||||
void EnableLazyCompilation(bool Enabled = true) {
|
||||
CompilingLazily = Enabled;
|
||||
void DisableLazyCompilation(bool Disabled = true) {
|
||||
CompilingLazily = !Disabled;
|
||||
}
|
||||
bool isCompilingLazily() const {
|
||||
return CompilingLazily;
|
||||
}
|
||||
// Deprecated in favor of isCompilingLazily (to reduce double-negatives).
|
||||
// Remove this in LLVM 2.8.
|
||||
bool isLazyCompilationDisabled() const {
|
||||
return !CompilingLazily;
|
||||
}
|
||||
|
||||
/// DisableGVCompilation - If called, the JIT will abort if it's asked to
|
||||
/// allocate space and populate a GlobalVariable that is not internal to
|
||||
|
Reference in New Issue
Block a user