summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-06-12 17:16:48 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-06-12 17:16:48 +0000
commitec06695579151cdc95cb62249da273b4d873967b (patch)
treeca327e9555737a8ad9788d1e84f51356ac49025b /llvm/lib/Transforms
parent84613c4eba083d2d5e40104734ad3e784427a292 (diff)
downloadbcm5719-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.cpp1
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);
OpenPOWER on IntegriCloud