diff options
author | Richard Smith <richard@metafoo.co.uk> | 2020-09-20 23:16:08 -0700 |
---|---|---|
committer | Richard Smith <richard@metafoo.co.uk> | 2020-10-21 13:21:41 -0700 |
commit | ba4768c966581658465f7366df9b0811f468a2d7 (patch) | |
tree | edf8c81d55613e4493f7793f0c8138b57c08580d /clang/lib/CodeGen/CodeGenModule.h | |
parent | 1d1217c4ea115ac204f666a31686787503623dfa (diff) | |
download | llvm-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.h | 4 |
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); |