diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2006-12-01 00:25:12 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2006-12-01 00:25:12 +0000 |
commit | 78ee7b78c3c47b71c4b7a1475438d6574216a64b (patch) | |
tree | 95741db67fdcf0223e347e9448bc8baf7997cf84 /lib/ExecutionEngine/ExecutionEngine.cpp | |
parent | 44c030a7ee8ea2bbc9482313313480eb1795a63f (diff) | |
download | external_llvm-78ee7b78c3c47b71c4b7a1475438d6574216a64b.zip external_llvm-78ee7b78c3c47b71c4b7a1475438d6574216a64b.tar.gz external_llvm-78ee7b78c3c47b71c4b7a1475438d6574216a64b.tar.bz2 |
Introducing external weak linkage. Darwin codegen should be added later.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32052 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r-- | lib/ExecutionEngine/ExecutionEngine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index 683b4c7..8447acf 100644 --- a/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/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; } } |