forked from OSchip/llvm-project
Keep callers of a weak function calling it, instead of the non-weak equivalent.
llvm-svn: 73235
This commit is contained in:
parent
84613c4eba
commit
ec06695579
|
@ -548,6 +548,7 @@ static bool fold(std::vector<Function *> &FnVec, unsigned i, unsigned j) {
|
||||||
F->getParent());
|
F->getParent());
|
||||||
H->copyAttributesFrom(F);
|
H->copyAttributesFrom(F);
|
||||||
H->takeName(F);
|
H->takeName(F);
|
||||||
|
F->replaceAllUsesWith(H);
|
||||||
|
|
||||||
ThunkGToF(F, G);
|
ThunkGToF(F, G);
|
||||||
ThunkGToF(F, H);
|
ThunkGToF(F, H);
|
||||||
|
|
Loading…
Reference in New Issue