diff options
| author | Jeffrey Yasskin <jyasskin@google.com> | 2009-12-13 20:30:32 +0000 |
|---|---|---|
| committer | Jeffrey Yasskin <jyasskin@google.com> | 2009-12-13 20:30:32 +0000 |
| commit | 8c17e6de2b291b006797f513b848dd7291332207 (patch) | |
| tree | 5a269501a51ec6bc17f615335c04f83a6fbcbcdf /llvm/lib/ExecutionEngine/JIT | |
| parent | adbe4249d6a643a78720db059c946a608d7a8673 (diff) | |
| download | bcm5719-llvm-8c17e6de2b291b006797f513b848dd7291332207.tar.gz bcm5719-llvm-8c17e6de2b291b006797f513b848dd7291332207.zip | |
Reinstate r91208 to fix available_externally linkage for globals, with
nlewycky's fix to add -rdynamic so the JIT can look symbols up in Linux builds
of the JITTests binary.
llvm-svn: 91250
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT')
| -rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JIT.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp index 6d781c7e22c..3607f1fcb09 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()) { + if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage()) { #if HAVE___DSO_HANDLE if (GV->getName() == "__dso_handle") return (void*)&__dso_handle; |

