]> granicus.if.org Git - clang/commit
CodeGen: Refactor dynamic_cast and typeid
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 20 Jun 2014 21:11:00 +0000 (21:11 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 20 Jun 2014 21:11:00 +0000 (21:11 +0000)
commit5d229785a325e5f4533dd90494f74a278f29927b
treecfa936dfaa2a51aa6edd38ef198aa0a9ff8d7b9f
parent76981cc33cb8d6477a9c65a6104725e3047d05b9
CodeGen: Refactor dynamic_cast and typeid

This refactors the emission of dynamic_cast and typeid expressions so
that ABI specific knowledge lives in appropriate places.  There are
quite a few benefits for having the two implementations share a common
core like sharing logic for optimization opportunities.

While we are at it, clean up the tests.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211402 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCXXABI.h
lib/CodeGen/CGExprCXX.cpp
lib/CodeGen/ItaniumCXXABI.cpp
lib/CodeGen/MicrosoftCXXABI.cpp
test/CodeGenCXX/microsoft-abi-dynamic-cast.cpp
test/CodeGenCXX/microsoft-abi-typeid.cpp