Fix major bug in thunk detection. Also verify the calling convention.
commitff380f202ea6a168a5167cdf238a6a22a9ea3a71
authorNick Lewycky <nicholas@mxc.ca>
Tue, 7 Sep 2010 01:42:10 +0000 (7 01:42 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 7 Sep 2010 01:42:10 +0000 (7 01:42 +0000)
tree16a83b681a503fd3ca01b57995a967705ab40ab1
parent33b02aa716ddd5bb2a1af55d252e5973688893ac
Fix major bug in thunk detection. Also verify the calling convention.

Switch from isWeakForLinker to mayBeOverridden which is more accurate.

Add more statistics and debugging info. Add comments. Move static function
outside anonymous namespace.

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