diff options
author | Vitaly Buka <vitalybuka@google.com> | 2025-09-12 16:15:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-12 16:15:31 -0700 |
commit | bac9e463b1f77b7354fe68c87d58be67e3294806 (patch) | |
tree | 55f5eb556970547227314bcb86711c369f46027d /clang/lib/CodeGen/CodeGenModule.h | |
parent | f32874f77b5a6065a705ffc35b48bff1545cd6cd (diff) | |
download | llvm-bac9e463b1f77b7354fe68c87d58be67e3294806.zip llvm-bac9e463b1f77b7354fe68c87d58be67e3294806.tar.gz llvm-bac9e463b1f77b7354fe68c87d58be67e3294806.tar.bz2 |
[NFC][CodeGen][CFI] Extract CreateMetadataIdentifierForFnType (#158189)
For #158193
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 f62350fd..8b1ac2d 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -1623,6 +1623,9 @@ public: /// Generate a KCFI type identifier for T. llvm::ConstantInt *CreateKCFITypeId(QualType T, StringRef Salt); + /// Create a metadata identifier for the given function type. + llvm::Metadata *CreateMetadataIdentifierForFnType(QualType T); + /// Create a metadata identifier for the given type. This may either be an /// MDString (for external identifiers) or a distinct unnamed MDNode (for /// internal identifiers). |