libcxx pretty printers: remove non-lazy_string fallback

This has been supported on gdb for something like ~10 years, so doesn't
seem necessary to carry a fallback.

Differential Revision: https://reviews.llvm.org/D114986
This commit is contained in:
David Blaikie 2021-12-02 12:16:10 -08:00
parent 7bef49296e
commit 1f2492b7da

View File

@ -234,9 +234,7 @@ class StdStringPrinter(object):
else:
data = short_field["__data_"]
size = self._get_short_size(short_field, short_size)
if hasattr(data, "lazy_string"):
return data.lazy_string(length=size)
return data.string(length=size)
return data.lazy_string(length=size)
def display_hint(self):
return "string"