[Lldb-commits] [lldb] edbb0f6 - [lldb] Rename DemangleWithRichManglingInfo to GetRichManglingInfo (NFC)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 4 10:40:38 PST 2022
Author: Jonas Devlieghere
Date: 2022-02-04T10:40:33-08:00
New Revision: edbb0f6df76b04100357c7c9438f3b5b978e0200
URL: https://github.com/llvm/llvm-project/commit/edbb0f6df76b04100357c7c9438f3b5b978e0200
DIFF: https://github.com/llvm/llvm-project/commit/edbb0f6df76b04100357c7c9438f3b5b978e0200.diff
LOG: [lldb] Rename DemangleWithRichManglingInfo to GetRichManglingInfo (NFC)
This addresses Pavel's comment from D118814.
Added:
Modified:
lldb/include/lldb/Core/Mangled.h
lldb/source/Core/Mangled.cpp
lldb/source/Symbol/Symtab.cpp
Removed:
################################################################################
diff --git a/lldb/include/lldb/Core/Mangled.h b/lldb/include/lldb/Core/Mangled.h
index 4e4f75e18e34d..aaefb69f017bc 100644
--- a/lldb/include/lldb/Core/Mangled.h
+++ b/lldb/include/lldb/Core/Mangled.h
@@ -226,10 +226,9 @@ class Mangled {
/// Function signature for filtering mangled names.
using SkipMangledNameFn = bool(llvm::StringRef, ManglingScheme);
- /// Trigger explicit demangling to obtain rich mangling information. This is
- /// optimized for batch processing while populating a name index. To get the
- /// pure demangled name string for a single entity, use GetDemangledName()
- /// instead.
+ /// Get rich mangling information. This is optimized for batch processing
+ /// while populating a name index. To get the pure demangled name string for
+ /// a single entity, use GetDemangledName() instead.
///
/// For names that match the Itanium mangling scheme, this uses LLVM's
/// ItaniumPartialDemangler. All other names fall back to LLDB's builtin
@@ -248,8 +247,8 @@ class Mangled {
///
/// \return
/// True on success, false otherwise.
- bool DemangleWithRichManglingInfo(RichManglingContext &context,
- SkipMangledNameFn *skip_mangled_name);
+ bool GetRichManglingInfo(RichManglingContext &context,
+ SkipMangledNameFn *skip_mangled_name);
/// Try to identify the mangling scheme used.
/// \param[in] name
diff --git a/lldb/source/Core/Mangled.cpp b/lldb/source/Core/Mangled.cpp
index ba3447020adbb..31e1d68c29f31 100644
--- a/lldb/source/Core/Mangled.cpp
+++ b/lldb/source/Core/Mangled.cpp
@@ -195,8 +195,8 @@ static char *GetDLangDemangledStr(const char *M) {
// Explicit demangling for scheduled requests during batch processing. This
// makes use of ItaniumPartialDemangler's rich demangle info
-bool Mangled::DemangleWithRichManglingInfo(
- RichManglingContext &context, SkipMangledNameFn *skip_mangled_name) {
+bool Mangled::GetRichManglingInfo(RichManglingContext &context,
+ SkipMangledNameFn *skip_mangled_name) {
// Others are not meant to arrive here. ObjC names or C's main() for example
// have their names stored in m_demangled, while m_mangled is empty.
assert(m_mangled);
diff --git a/lldb/source/Symbol/Symtab.cpp b/lldb/source/Symbol/Symtab.cpp
index 436f97e623819..d148706003adf 100644
--- a/lldb/source/Symbol/Symtab.cpp
+++ b/lldb/source/Symbol/Symtab.cpp
@@ -328,7 +328,7 @@ void Symtab::InitNameIndexes() {
const SymbolType type = symbol->GetType();
if (type == eSymbolTypeCode || type == eSymbolTypeResolver) {
- if (mangled.DemangleWithRichManglingInfo(rmc, lldb_skip_name)) {
+ if (mangled.GetRichManglingInfo(rmc, lldb_skip_name)) {
RegisterMangledNameEntry(value, class_contexts, backlog, rmc);
continue;
}
More information about the lldb-commits
mailing list