From ba4768c966581658465f7366df9b0811f468a2d7 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Sun, 20 Sep 2020 23:16:08 -0700 Subject: [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. --- clang/lib/CodeGen/CodeGenModule.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/lib/CodeGen/CodeGenModule.h') 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); -- cgit v1.1