summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/JIT
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-12-12 06:18:46 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-12-12 06:18:46 +0000
commit9ad6ba37668979d4cc9b6004681241c16bf29d0f (patch)
treeb772e63b8b8e51adab3894359e3d0c7d3a4ad5fc /llvm/lib/ExecutionEngine/JIT
parent2d2dcdcbf7df12f7fb277aca81df45c83f39c43e (diff)
downloadbcm5719-llvm-9ad6ba37668979d4cc9b6004681241c16bf29d0f.tar.gz
bcm5719-llvm-9ad6ba37668979d4cc9b6004681241c16bf29d0f.zip
Revert r91208. Something on Linux prevents the JIT from looking up a symbol
defined in the test, and I don't have time tonight to figure it out. llvm-svn: 91209
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JIT.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
index 3607f1fcb09..6d781c7e22c 100644
--- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
@@ -681,7 +681,7 @@ void *JIT::getOrEmitGlobalVariable(const GlobalVariable *GV) {
if (Ptr) return Ptr;
// If the global is external, just remember the address.
- if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage()) {
+ if (GV->isDeclaration()) {
#if HAVE___DSO_HANDLE
if (GV->getName() == "__dso_handle")
return (void*)&__dso_handle;
OpenPOWER on IntegriCloud