[llvm-commits] CVS: llvm/include/llvm/ExecutionEngine/ExecutionEngine.h
Chris Lattner
sabre at nondot.org
Thu Nov 9 11:31:02 PST 2006
Changes in directory llvm/include/llvm/ExecutionEngine:
ExecutionEngine.h updated: 1.40 -> 1.41
---
Log message:
allow clients to indicate that they never want lazy compilation.
---
Diffs of the changes: (+10 -0)
ExecutionEngine.h | 10 ++++++++++
1 files changed, 10 insertions(+)
Index: llvm/include/llvm/ExecutionEngine/ExecutionEngine.h
diff -u llvm/include/llvm/ExecutionEngine/ExecutionEngine.h:1.40 llvm/include/llvm/ExecutionEngine/ExecutionEngine.h:1.41
--- llvm/include/llvm/ExecutionEngine/ExecutionEngine.h:1.40 Tue Aug 15 21:53:27 2006
+++ llvm/include/llvm/ExecutionEngine/ExecutionEngine.h Thu Nov 9 13:30:47 2006
@@ -63,6 +63,7 @@
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 @@
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();
More information about the llvm-commits
mailing list