Fix linkage of mismatched weak globals. This unbreaks 300.twolf

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-12-04 18:54:48 +00:00
parent 3149ba7a65
commit c8ef1edc63

View File

@ -531,6 +531,8 @@ static bool LinkGlobals(Module *Dest, Module *Src,
else
DGV->setConstant(true);
}
SGV->setLinkage(GlobalValue::ExternalLinkage);
SGV->setInitializer(0);
}
ValueMap.insert(std::make_pair(SGV,