]> granicus.if.org Git - clang/commit
[MS ABI] Don't emit RTTI descriptors for dllimport vtables
authorDavid Majnemer <david.majnemer@gmail.com>
Sun, 7 Feb 2016 22:42:05 +0000 (22:42 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sun, 7 Feb 2016 22:42:05 +0000 (22:42 +0000)
commit8e361afc20450d8ad51448996e0c58957abb2820
tree007a8900e1ea55c094ca9894805fe04727a552a1
parent098a7a63df61439e812a5953158481e075eba169
[MS ABI] Don't emit RTTI descriptors for dllimport vtables

A dllimport'd vtable always points one past the RTTI data, this means
that the initializer will never end up referencing the data.  Our
emission is a harmless waste.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@260062 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MicrosoftCXXABI.cpp
test/CodeGenCXX/microsoft-abi-vftables.cpp