[llvm-commits] [llvm] r73235 - /llvm/trunk/lib/Transforms/IPO/MergeFunctions.cpp
Nick Lewycky
nicholas at mxc.ca
Fri Jun 12 10:16:59 PDT 2009
Author: nicholas
Date: Fri Jun 12 12:16:48 2009
New Revision: 73235
URL: http://llvm.org/viewvc/llvm-project?rev=73235&view=rev
Log:
Keep callers of a weak function calling it, instead of the non-weak equivalent.
Modified:
llvm/trunk/lib/Transforms/IPO/MergeFunctions.cpp
Modified: llvm/trunk/lib/Transforms/IPO/MergeFunctions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/MergeFunctions.cpp?rev=73235&r1=73234&r2=73235&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/MergeFunctions.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/MergeFunctions.cpp Fri Jun 12 12:16:48 2009
@@ -548,6 +548,7 @@
F->getParent());
H->copyAttributesFrom(F);
H->takeName(F);
+ F->replaceAllUsesWith(H);
ThunkGToF(F, G);
ThunkGToF(F, H);
More information about the llvm-commits
mailing list