summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2014-05-28 01:52:23 +0000
committerHans Wennborg <hans@hanshq.net>2014-05-28 01:52:23 +0000
commit875cf241e28b69f752ab246db2dd09114bf7f767 (patch)
tree04c7f7d64ae7e63b98ecbf477d5b7d5c22252652 /lib/CodeGen/CodeGenModule.h
parent89e902158bb47383c3a46139b3c1438cb2b9895b (diff)
downloadclang-875cf241e28b69f752ab246db2dd09114bf7f767.tar.gz
clang-875cf241e28b69f752ab246db2dd09114bf7f767.tar.bz2
clang-875cf241e28b69f752ab246db2dd09114bf7f767.tar.xz
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209706 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r--lib/CodeGen/CodeGenModule.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h
index 9e5835132a..c54f6dea52 100644
--- a/lib/CodeGen/CodeGenModule.h
+++ b/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