projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3149ba7
)
Fix linkage of mismatched weak globals. This unbreaks 300.twolf
author
Chris Lattner
<sabre@nondot.org>
Sat, 4 Dec 2004 18:54:48 +0000
(18:54 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 4 Dec 2004 18:54:48 +0000
(18:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18494
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Linker/LinkModules.cpp
patch
|
blob
|
history
diff --git
a/lib/Linker/LinkModules.cpp
b/lib/Linker/LinkModules.cpp
index c5d1240a2ff5deae5fd1e9dca74f65173ddc7619..d58acbec81c0ab11d36cb442e98c8de804b09231 100644
(file)
--- a/
lib/Linker/LinkModules.cpp
+++ b/
lib/Linker/LinkModules.cpp
@@
-531,6
+531,8
@@
static bool LinkGlobals(Module *Dest, Module *Src,
else
DGV->setConstant(true);
}
else
DGV->setConstant(true);
}
+ SGV->setLinkage(GlobalValue::ExternalLinkage);
+ SGV->setInitializer(0);
}
ValueMap.insert(std::make_pair(SGV,
}
ValueMap.insert(std::make_pair(SGV,