commit | 3867f09c00d3df76d6e87b112d46154ba909a757 | [log] [tgz] |
---|---|---|
author | Nick Lewycky <nicholas@mxc.ca> | Fri Jun 12 17:16:48 2009 +0000 |
committer | Nick Lewycky <nicholas@mxc.ca> | Fri Jun 12 17:16:48 2009 +0000 |
tree | afc550e3ca13161be2ddee89f2d0db770e68090a | |
parent | a8726f021bfd58f10d66ef7310f84eb7195b390a [diff] |
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
diff --git a/lib/Transforms/IPO/MergeFunctions.cpp b/lib/Transforms/IPO/MergeFunctions.cpp index a1d91c2..2b7fb5d 100644 --- a/lib/Transforms/IPO/MergeFunctions.cpp +++ b/lib/Transforms/IPO/MergeFunctions.cpp
@@ -548,6 +548,7 @@ F->getParent()); H->copyAttributesFrom(F); H->takeName(F); + F->replaceAllUsesWith(H); ThunkGToF(F, G); ThunkGToF(F, H);