[clang] 5427973 - [NFC] [clang] rename InlinedTrapFuncMap to InlinedSubprogramMap (#132993)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 25 15:03:07 PDT 2025
Author: Florian Mayer
Date: 2025-03-25T15:03:04-07:00
New Revision: 542797317ae4e98c8aa9030368d851fc72070f95
URL: https://github.com/llvm/llvm-project/commit/542797317ae4e98c8aa9030368d851fc72070f95
DIFF: https://github.com/llvm/llvm-project/commit/542797317ae4e98c8aa9030368d851fc72070f95.diff
LOG: [NFC] [clang] rename InlinedTrapFuncMap to InlinedSubprogramMap (#132993)
Added:
Modified:
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/CodeGen/CGDebugInfo.h
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index dcccbc0835d95..54025b767dc81 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -1791,7 +1791,7 @@ CGDebugInfo::createInlinedTrapSubprogram(StringRef FuncName,
// We are caching the subprogram because we don't want to duplicate
// subprograms with the same message. Note that `SPFlagDefinition` prevents
// subprograms from being uniqued.
- llvm::DISubprogram *&SP = InlinedTrapFuncMap[FuncName];
+ llvm::DISubprogram *&SP = InlinedSubprogramMap[FuncName];
if (!SP) {
llvm::DISubroutineType *DIFnTy = DBuilder.createSubroutineType(nullptr);
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h
index 38f73eca561b7..9db5113fe5d8e 100644
--- a/clang/lib/CodeGen/CGDebugInfo.h
+++ b/clang/lib/CodeGen/CGDebugInfo.h
@@ -355,7 +355,7 @@ class CGDebugInfo {
llvm::ArrayRef<llvm::Metadata *> PreviousFieldsDI, const RecordDecl *RD);
/// A cache that maps names of artificial inlined functions to subprograms.
- llvm::StringMap<llvm::DISubprogram *> InlinedTrapFuncMap;
+ llvm::StringMap<llvm::DISubprogram *> InlinedSubprogramMap;
/// A function that returns the subprogram corresponding to the artificial
/// inlined function for traps.
More information about the cfe-commits
mailing list