From 78ee7b78c3c47b71c4b7a1475438d6574216a64b Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Fri, 1 Dec 2006 00:25:12 +0000 Subject: 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 --- lib/ExecutionEngine/ExecutionEngine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ExecutionEngine/ExecutionEngine.cpp') diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index 683b4c7517..8447acf0e5 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; } } -- cgit v1.2.3-18-g5258