diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2009-06-12 17:16:48 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2009-06-12 17:16:48 +0000 |
| commit | 3867f09c00d3df76d6e87b112d46154ba909a757 (patch) | |
| tree | afc550e3ca13161be2ddee89f2d0db770e68090a /lib/Transforms | |
| parent | a8726f021bfd58f10d66ef7310f84eb7195b390a (diff) | |
| download | external_llvm-3867f09c00d3df76d6e87b112d46154ba909a757.zip external_llvm-3867f09c00d3df76d6e87b112d46154ba909a757.tar.gz external_llvm-3867f09c00d3df76d6e87b112d46154ba909a757.tar.bz2 | |
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
Diffstat (limited to 'lib/Transforms')
| -rw-r--r-- | lib/Transforms/IPO/MergeFunctions.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ 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); |
