diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-11-09 19:32:13 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-11-09 19:32:13 +0000 | 
| commit | 5fdbe55979420340deebed74cd84a13235d0c804 (patch) | |
| tree | d8848de4029ee52fe9cde053f8067c6ef3dbf24b /llvm/lib/ExecutionEngine | |
| parent | 87aee74ccbbae2c0c2665ae7d4152fc46b34ceca (diff) | |
| download | bcm5719-llvm-5fdbe55979420340deebed74cd84a13235d0c804.tar.gz bcm5719-llvm-5fdbe55979420340deebed74cd84a13235d0c804.zip | |
if lazy compilation is disabled, print an error message and abort if
lazy compilation is ever attempted
llvm-svn: 31602
Diffstat (limited to 'llvm/lib/ExecutionEngine')
| -rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp index 911aa8c2056..1c2d5d3185a 100644 --- a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -613,6 +613,13 @@ void *JITResolver::JITCompilerFn(void *Stub) {           "This is not a known stub!");    Function *F = (--I)->second; +  // If disabled, emit a useful error message and abort. +  if (TheJIT->isLazyCompilationDisabled()) { +    std::cerr << "LLVM JIT requested to do lazy compilation of function '" +              << F->getName() << "' when lazy compiles are disabled!\n"; +    abort(); +  } +      // We might like to remove the stub from the StubToFunction map.    // We can't do that! Multiple threads could be stuck, waiting to acquire the    // lock above. As soon as the 1st function finishes compiling the function, | 

