diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2008-09-24 16:25:55 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2008-09-24 16:25:55 +0000 |
| commit | 9b8bc833e90176059e920ce61a156ba7dba967d6 (patch) | |
| tree | 76a5172fb16d6058cc8a26df2d7c569cd3f92591 /include/llvm/ExecutionEngine/ExecutionEngine.h | |
| parent | 0445c4c532ae56f12727165e35ddd0cb31ba0234 (diff) | |
| download | external_llvm-9b8bc833e90176059e920ce61a156ba7dba967d6.zip external_llvm-9b8bc833e90176059e920ce61a156ba7dba967d6.tar.gz external_llvm-9b8bc833e90176059e920ce61a156ba7dba967d6.tar.bz2 | |
Add DisableGVCompilation which forces the JIT to assert when it tries to allocate space for a GlobalVariable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56557 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ExecutionEngine/ExecutionEngine.h')
| -rw-r--r-- | include/llvm/ExecutionEngine/ExecutionEngine.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h index edcddde..d4fd0fb 100644 --- a/include/llvm/ExecutionEngine/ExecutionEngine.h +++ b/include/llvm/ExecutionEngine/ExecutionEngine.h @@ -65,6 +65,7 @@ class ExecutionEngine { const TargetData *TD; ExecutionEngineState state; bool LazyCompilationDisabled; + bool GVCompilationDisabled; bool SymbolSearchingDisabled; protected: @@ -254,6 +255,16 @@ public: bool isLazyCompilationDisabled() const { return LazyCompilationDisabled; } + + /// DisableGVCompilation - If called, the JIT will abort if it's asked to allocate + /// space and populate a GlobalVariable. + void DisableGVCompilation(bool Disabled = true) { + GVCompilationDisabled = Disabled; + } + bool isGVCompilationDisabled() const { + return GVCompilationDisabled; + } + /// 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. |
