[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Nov 30 09:42:03 PST 2004
Changes in directory llvm/lib/ExecutionEngine/JIT:
JITEmitter.cpp updated: 1.56 -> 1.57
---
Log message:
Fix the JIT when being used from llvm-db
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.56 llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.57
--- llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp:1.56 Mon Nov 22 16:00:25 2004
+++ llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp Tue Nov 30 11:41:49 2004
@@ -275,7 +275,7 @@
void *ResultPtr = TheJIT->getPointerToGlobalIfAvailable(F);
if (ResultPtr) return ResultPtr;
- if (F->hasExternalLinkage()) {
+ if (F->hasExternalLinkage() && F->isExternal()) {
// If this is an external function pointer, we can force the JIT to
// 'compile' it, which really just adds it to the map.
if (DoesntNeedStub)
More information about the llvm-commits
mailing list