OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbd8c33
)
Keep callers of a weak function calling it, instead of the non-weak equivalent.
author
Nick Lewycky
<nicholas@mxc.ca>
Fri, 12 Jun 2009 17:16:48 +0000
(17:16 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Fri, 12 Jun 2009 17:16:48 +0000
(17:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73235
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/MergeFunctions.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/MergeFunctions.cpp
b/lib/Transforms/IPO/MergeFunctions.cpp
index
a1d91c2
..
2b7fb5d
100644
(file)
--- 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);