aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorRichard Smith <richard@metafoo.co.uk>2020-09-20 23:16:08 -0700
committerRichard Smith <richard@metafoo.co.uk>2020-10-21 13:21:41 -0700
commitba4768c966581658465f7366df9b0811f468a2d7 (patch)
treeedf8c81d55613e4493f7793f0c8138b57c08580d /clang/lib/CodeGen/CodeGenModule.h
parent1d1217c4ea115ac204f666a31686787503623dfa (diff)
downloadllvm-ba4768c966581658465f7366df9b0811f468a2d7.zip
llvm-ba4768c966581658465f7366df9b0811f468a2d7.tar.gz
llvm-ba4768c966581658465f7366df9b0811f468a2d7.tar.bz2
[c++20] For P0732R2 / P1907R1: Basic frontend support for class types as
non-type template parameters. Create a unique TemplateParamObjectDecl instance for each such value, representing the globally unique template parameter object to which the template parameter refers. No IR generation support yet; that will follow in a separate patch.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 088ed28..fc732db 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -859,6 +859,10 @@ public:
/// Get the address of a GUID.
ConstantAddress GetAddrOfMSGuidDecl(const MSGuidDecl *GD);
+ /// Get the address of a template parameter object.
+ ConstantAddress
+ GetAddrOfTemplateParamObject(const TemplateParamObjectDecl *TPO);
+
/// Get the address of the thunk for the given global decl.
llvm::Constant *GetAddrOfThunk(StringRef Name, llvm::Type *FnTy,
GlobalDecl GD);