Revert "[lldb] Make the libcxx unique_ptr prettyprinter support custom deleters."

This reverts commit d366da97bd.
This commit is contained in:
Jorge Gorbe Moya
2023-05-01 14:13:28 -07:00
parent 5fc3db7da7
commit 4535112010
7 changed files with 27 additions and 90 deletions

View File

@@ -126,3 +126,14 @@ lldb_private::formatters::GetArrayAddressOrPointerValue(ValueObject &valobj) {
return data_addr;
}
lldb::ValueObjectSP
lldb_private::formatters::GetValueOfLibCXXCompressedPair(ValueObject &pair) {
ValueObjectSP value =
pair.GetChildMemberWithName(ConstString("__value_"), true);
if (!value) {
// pre-r300140 member name
value = pair.GetChildMemberWithName(ConstString("__first_"), true);
}
return value;
}