diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-05-28 01:52:23 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2014-05-28 01:52:23 +0000 |
commit | 275efb9e5020d60178251611373d636da6def0ca (patch) | |
tree | f76ac970bcacede0b9f36a0658ddaca6ead8bd1d /clang/lib/CodeGen/CodeGenModule.h | |
parent | 8399d69cb27f8bf67e25a40b8c3965eec180d00e (diff) | |
download | bcm5719-llvm-275efb9e5020d60178251611373d636da6def0ca.tar.gz bcm5719-llvm-275efb9e5020d60178251611373d636da6def0ca.zip |
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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 9e5835132ae..c54f6dea521 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -975,8 +975,7 @@ public: /// Returns LLVM linkage for a declarator. llvm::GlobalValue::LinkageTypes getLLVMLinkageForDeclarator(const DeclaratorDecl *D, GVALinkage Linkage, - bool IsConstantVariable, - bool UseThunkForDtorVariant); + bool IsConstantVariable); /// Returns LLVM linkage for a declarator. llvm::GlobalValue::LinkageTypes |