diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2009-12-12 05:58:14 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2009-12-12 05:58:14 +0000 |
commit | 2d2dcdcbf7df12f7fb277aca81df45c83f39c43e (patch) | |
tree | 1fa52b10ee5cfd0813f061a59ea59cb7729d7ac4 /llvm/lib/ExecutionEngine/JIT | |
parent | 1615d45daaf1fb40a8a6acb0bddf29b2daae322f (diff) | |
download | bcm5719-llvm-2d2dcdcbf7df12f7fb277aca81df45c83f39c43e.tar.gz bcm5719-llvm-2d2dcdcbf7df12f7fb277aca81df45c83f39c43e.zip |
Fix available_externally linkage for globals. It's probably still not
supported by emitGlobals, but I don't have a test case for that.
llvm-svn: 91208
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; |