diff options
author | Hans Wennborg <hans@hanshq.net> | 2015-05-28 17:44:56 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2015-05-28 17:44:56 +0000 |
commit | bb4f962ad66352dbad95751f4d360876c98a4bc3 (patch) | |
tree | 5e7f1eacacd1df5334bda82d1d66bd6f550ba6ab /clang/lib/CodeGen/CodeGenModule.h | |
parent | 0b5ebef7cdf5b4812a3ceb09a8e4a59359019d3d (diff) | |
download | bcm5719-llvm-bb4f962ad66352dbad95751f4d360876c98a4bc3.tar.gz bcm5719-llvm-bb4f962ad66352dbad95751f4d360876c98a4bc3.zip |
Get the dll storage class right for structors of classes exported/imported via explicit instantiation (PR23667)
This is a follow-up to r238266. It turned out structors are codegened through a different path,
and didn't get the storage class set in EmitGlobalFunctionDefinition.
llvm-svn: 238443
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index feef6c2583e..35000964b2e 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -1018,6 +1018,9 @@ public: F->setLinkage(getFunctionLinkage(GD)); } + /// Set the DLL storage class on F. + void setFunctionDLLStorageClass(GlobalDecl GD, llvm::Function *F); + /// Return the appropriate linkage for the vtable, VTT, and type information /// of the given class. llvm::GlobalVariable::LinkageTypes getVTableLinkage(const CXXRecordDecl *RD); |