mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-16 13:08:42 +00:00
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:
parent
7bef49296e
commit
1f2492b7da
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user