This revision was automatically updated to reflect the committed changes.
Closed by commit rG5eaf44f99f0a: [lldb] Delete ValueObject::GetBaseClassPath
(authored by xiaobai).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73517/new/
https://reviews.llvm.org/D73517
Files:
lldb/include/lldb/Core/ValueObject.h
lldb/source/Core/ValueObject.cpp
Index: lldb/source/Core/ValueObject.cpp
===================================================================
--- lldb/source/Core/ValueObject.cpp
+++ lldb/source/Core/ValueObject.cpp
@@ -2013,23 +2013,6 @@
return m_synthetic_value != nullptr;
}
-bool ValueObject::GetBaseClassPath(Stream &s) {
- if (IsBaseClass()) {
- bool parent_had_base_class =
- GetParent() && GetParent()->GetBaseClassPath(s);
- CompilerType compiler_type = GetCompilerType();
- llvm::Optional<std::string> cxx_class_name =
- TypeSystemClang::GetCXXClassName(compiler_type);
- if (cxx_class_name) {
- if (parent_had_base_class)
- s.PutCString("::");
- s.PutCString(cxx_class_name.getValue());
- }
- return parent_had_base_class || cxx_class_name;
- }
- return false;
-}
-
ValueObject *ValueObject::GetNonBaseClassParent() {
if (GetParent()) {
if (GetParent()->IsBaseClass())
@@ -2139,13 +2122,8 @@
}
const char *name = GetName().GetCString();
- if (name) {
- if (qualify_cxx_base_classes) {
- if (GetBaseClassPath(s))
- s.PutCString("::");
- }
+ if (name)
s.PutCString(name);
- }
}
}
Index: lldb/include/lldb/Core/ValueObject.h
===================================================================
--- lldb/include/lldb/Core/ValueObject.h
+++ lldb/include/lldb/Core/ValueObject.h
@@ -396,8 +396,6 @@
bool IsIntegerType(bool &is_signed);
- virtual bool GetBaseClassPath(Stream &s);
-
virtual void GetExpressionPath(
Stream &s, bool qualify_cxx_base_classes,
GetExpressionPathFormat = eGetExpressionPathFormatDereferencePointers);
Index: lldb/source/Core/ValueObject.cpp
===================================================================
--- lldb/source/Core/ValueObject.cpp
+++ lldb/source/Core/ValueObject.cpp
@@ -2013,23 +2013,6 @@
return m_synthetic_value != nullptr;
}
-bool ValueObject::GetBaseClassPath(Stream &s) {
- if (IsBaseClass()) {
- bool parent_had_base_class =
- GetParent() && GetParent()->GetBaseClassPath(s);
- CompilerType compiler_type = GetCompilerType();
- llvm::Optional<std::string> cxx_class_name =
- TypeSystemClang::GetCXXClassName(compiler_type);
- if (cxx_class_name) {
- if (parent_had_base_class)
- s.PutCString("::");
- s.PutCString(cxx_class_name.getValue());
- }
- return parent_had_base_class || cxx_class_name;
- }
- return false;
-}
-
ValueObject *ValueObject::GetNonBaseClassParent() {
if (GetParent()) {
if (GetParent()->IsBaseClass())
@@ -2139,13 +2122,8 @@
}
const char *name = GetName().GetCString();
- if (name) {
- if (qualify_cxx_base_classes) {
- if (GetBaseClassPath(s))
- s.PutCString("::");
- }
+ if (name)
s.PutCString(name);
- }
}
}
Index: lldb/include/lldb/Core/ValueObject.h
===================================================================
--- lldb/include/lldb/Core/ValueObject.h
+++ lldb/include/lldb/Core/ValueObject.h
@@ -396,8 +396,6 @@
bool IsIntegerType(bool &is_signed);
- virtual bool GetBaseClassPath(Stream &s);
-
virtual void GetExpressionPath(
Stream &s, bool qualify_cxx_base_classes,
GetExpressionPathFormat = eGetExpressionPathFormatDereferencePointers);
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits