Fix major bug in thunk detection. Also verify the calling convention.
authorNick Lewycky <nicholas@mxc.ca>
Tue, 7 Sep 2010 01:42:10 +0000 (01:42 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 7 Sep 2010 01:42:10 +0000 (01:42 +0000)
commit2b6c01b40b75e363e46b3ad7c598113eb98f34fb
tree16a83b681a503fd3ca01b57995a967705ab40ab1
parente9e0fc5eed9e177c3ee7299a34e640973102ac39
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