Don't dllimport/export destructor variants implemented by thunks.
authorHans Wennborg <hans@hanshq.net>
Wed, 28 May 2014 01:52:23 +0000 (01:52 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 28 May 2014 01:52:23 +0000 (01:52 +0000)
commit275efb9e5020d60178251611373d636da6def0ca
treef76ac970bcacede0b9f36a0658ddaca6ead8bd1d
parent8399d69cb27f8bf67e25a40b8c3965eec180d00e
Don't dllimport/export destructor variants implemented by thunks.

MSVC doesn't export these functions, so trying to import them doesnt' work.
Also, don't let any dll attributes on the CXXDestructorDecl influence the
thunk's linkage -- they should always be linkonce_odr.

This takes care of the FIXME's for this in Nico's tests.

Differential Revision: http://reviews.llvm.org/D3930

llvm-svn: 209706
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/CodeGen/CodeGenModule.h
clang/test/CodeGenCXX/dllimport-members.cpp