mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-15 03:19:58 +00:00
Add a new flag that disables symbol lookup with dlsym when set. This allows
a JIT client to completely control symbol lookup with the LazyFunctionCreator interface. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52335 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -65,6 +65,7 @@ class ExecutionEngine {
|
||||
const TargetData *TD;
|
||||
ExecutionEngineState state;
|
||||
bool LazyCompilationDisabled;
|
||||
bool SymbolSearchingDisabled;
|
||||
|
||||
protected:
|
||||
/// Modules - This is a list of ModuleProvider's that we are JIT'ing from. We
|
||||
@@ -243,13 +244,22 @@ public:
|
||||
}
|
||||
|
||||
/// DisableLazyCompilation - If called, the JIT will abort if lazy compilation
|
||||
// is ever attempted.
|
||||
void DisableLazyCompilation() {
|
||||
LazyCompilationDisabled = true;
|
||||
/// is ever attempted.
|
||||
void DisableLazyCompilation(bool Disabled = true) {
|
||||
LazyCompilationDisabled = Disabled;
|
||||
}
|
||||
bool isLazyCompilationDisabled() const {
|
||||
return LazyCompilationDisabled;
|
||||
}
|
||||
/// DisableSymbolSearching - If called, the JIT will not try to lookup unknown
|
||||
/// symbols with dlsym. A client can still use InstallLazyFunctionCreator to
|
||||
/// resolve symbols in a custom way.
|
||||
void DisableSymbolSearching(bool Disabled = true) {
|
||||
SymbolSearchingDisabled = Disabled;
|
||||
}
|
||||
bool isSymbolSearchingDisabled() const {
|
||||
return SymbolSearchingDisabled;
|
||||
}
|
||||
|
||||
|
||||
/// InstallLazyFunctionCreator - If an unknown function is needed, the
|
||||
|
Reference in New Issue
Block a user