aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorAndrew Ng <andrew.ng@sony.com>2024-06-10 19:39:28 +0100
committerGitHub <noreply@github.com>2024-06-10 19:39:28 +0100
commitbaba78daf2b3a3ee9bfa21f1f8ff3584aa982ac8 (patch)
tree9bea3e65ef172574d9b03fe77d1375a3bebf9587 /clang/lib/CodeGen/CodeGenModule.h
parent870bfad71a5bc84102374d94812cf063552493b9 (diff)
downloadllvm-baba78daf2b3a3ee9bfa21f1f8ff3584aa982ac8.zip
llvm-baba78daf2b3a3ee9bfa21f1f8ff3584aa982ac8.tar.gz
llvm-baba78daf2b3a3ee9bfa21f1f8ff3584aa982ac8.tar.bz2
[clang] Fix loss of `dllexport` for exported template specialization (#94664)
When dropping DLL attributes, ensure that the most recent declaration is being checked.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index dc24971..9b63f47 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -1594,6 +1594,8 @@ public:
}
private:
+ bool shouldDropDLLAttribute(const Decl *D, const llvm::GlobalValue *GV) const;
+
llvm::Constant *GetOrCreateLLVMFunction(
StringRef MangledName, llvm::Type *Ty, GlobalDecl D, bool ForVTable,
bool DontDefer = false, bool IsThunk = false,