summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2006-12-01 00:25:12 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2006-12-01 00:25:12 +0000
commit12c94949e03b69eabbfce5466e3d8a57586cc809 (patch)
tree706a8617e774bdf7dfcfded0a5af26f30ec6dfa0 /llvm/lib/ExecutionEngine
parentad05ee9f39aabfcfd2ce2f477b0a6f8ba3ff6011 (diff)
downloadbcm5719-llvm-12c94949e03b69eabbfce5466e3d8a57586cc809.tar.gz
bcm5719-llvm-12c94949e03b69eabbfce5466e3d8a57586cc809.zip
Introducing external weak linkage. Darwin codegen should be added later.
llvm-svn: 32052
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/ExecutionEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
index 683b4c75176..8447acf0e53 100644
--- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -681,7 +681,7 @@ void ExecutionEngine::emitGlobals() {
// Otherwise, we know it's linkonce/weak, replace it if this is a strong
// symbol.
- if (GV->hasExternalLinkage())
+ if (GV->hasExternalLinkage() || GVEntry->hasExternalWeakLinkage())
GVEntry = GV;
}
}
OpenPOWER on IntegriCloud