Fix many bugs when merging weak-strong and weak-weak pairs. We now merge all
authorNick Lewycky <nicholas@mxc.ca>
Sun, 5 Sep 2010 08:22:49 +0000 (08:22 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 5 Sep 2010 08:22:49 +0000 (08:22 +0000)
commitb0104e1bb56cde925d91a5b2432a18f87214484a
tree1e2371849c5bc8f21fe23129910a27273423cc39
parentbeac75da3784929aee9f0357fc5cd76d49d6c3d7
Fix many bugs when merging weak-strong and weak-weak pairs. We now merge all
strong functions first to make sure they're the canonical definitions and then
do a second pass looking only for weak functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113104 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/MergeFunctions.cpp