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 | ec06695579151cdc95cb62249da273b4d873967b (patch) | |
| tree | ca327e9555737a8ad9788d1e84f51356ac49025b /llvm/lib/Transforms | |
| parent | 84613c4eba083d2d5e40104734ad3e784427a292 (diff) | |
| download | bcm5719-llvm-ec06695579151cdc95cb62249da273b4d873967b.tar.gz bcm5719-llvm-ec06695579151cdc95cb62249da273b4d873967b.zip | |
Keep callers of a weak function calling it, instead of the non-weak equivalent.
llvm-svn: 73235
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/IPO/MergeFunctions.cpp | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/llvm/lib/Transforms/IPO/MergeFunctions.cpp b/llvm/lib/Transforms/IPO/MergeFunctions.cpp index a1d91c256e5..2b7fb5d99d6 100644 --- a/llvm/lib/Transforms/IPO/MergeFunctions.cpp +++ b/llvm/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); | 

