]> granicus.if.org Git - clang/commit
CodeGen: Unify two implementations of canDevirtualizeMemberFunctionCall.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 25 Aug 2013 22:46:27 +0000 (22:46 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 25 Aug 2013 22:46:27 +0000 (22:46 +0000)
commit9581ed07dee5376002620a0cfb363c6b9e5bdd3e
treec857394e65c42b3fdd7926f9bc31461f0049d4ae
parent5db8b3138f36e11bca835881e81cc56bbd7b4fa4
CodeGen: Unify two implementations of canDevirtualizeMemberFunctionCall.

They were mostly copy&paste of each other, move it to CodeGenFunction. Of course
the two implementations have diverged over time; the one in CGExprCXX seems to
be the more modern one so I picked that one and moved it to CGClass which feels
like a better home for it. No intended functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189203 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGClass.cpp
lib/CodeGen/CGExprCXX.cpp
lib/CodeGen/CodeGenFunction.h