Keep callers of a weak function calling it, instead of the non-weak equivalent.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73235 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nick Lewycky 2009-06-12 17:16:48 +00:00
parent bbd8c33ee6
commit 93531e4986

View File

@ -548,6 +548,7 @@ static bool fold(std::vector<Function *> &FnVec, unsigned i, unsigned j) {
F->getParent());
H->copyAttributesFrom(F);
H->takeName(F);
F->replaceAllUsesWith(H);
ThunkGToF(F, G);
ThunkGToF(F, H);