aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-30 17:41:49 +0000
committerChris Lattner <sabre@nondot.org>2004-11-30 17:41:49 +0000
commit532343b24e78dc6120921c09151195a59b94058a (patch)
tree6adb6a3c71208f28b3ab348eb4eb1a8c7ac0fd22 /lib/ExecutionEngine
parent907e9bc3f10cce0b86ef9d70076d29cb5302a700 (diff)
downloadexternal_llvm-532343b24e78dc6120921c09151195a59b94058a.zip
external_llvm-532343b24e78dc6120921c09151195a59b94058a.tar.gz
external_llvm-532343b24e78dc6120921c09151195a59b94058a.tar.bz2
Fix the JIT when being used from llvm-db
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18391 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/JIT/JITEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp
index 0cd4769..dec7111 100644
--- a/lib/ExecutionEngine/JIT/JITEmitter.cpp
+++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp
@@ -275,7 +275,7 @@ void *JITEmitter::getPointerToGlobal(GlobalValue *V, void *Reference,
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)