Introducing external weak linkage. Darwin codegen should be added later.

llvm-svn: 32052
This commit is contained in:
Anton Korobeynikov
2006-12-01 00:25:12 +00:00
parent ad05ee9f39
commit 12c94949e0
8 changed files with 78 additions and 26 deletions

View File

@@ -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;
}
}