diff options
Diffstat (limited to 'lldb/source/Core')
| -rw-r--r-- | lldb/source/Core/FormatEntity.cpp | 5 | ||||
| -rw-r--r-- | lldb/source/Core/ValueObject.cpp | 7 |
2 files changed, 5 insertions, 7 deletions
diff --git a/lldb/source/Core/FormatEntity.cpp b/lldb/source/Core/FormatEntity.cpp index f5eb4d497c2..f252ff55211 100644 --- a/lldb/source/Core/FormatEntity.cpp +++ b/lldb/source/Core/FormatEntity.cpp @@ -874,7 +874,7 @@ static bool DumpValue(Stream &s, const SymbolContext *sc, { target->DumpPrintableRepresentation( s, val_obj_display, custom_format, - ValueObject::ePrintableRepresentationSpecialCasesDisable); + ValueObject::PrintableRepresentationSpecialCases::eDisable); } return true; } @@ -1676,8 +1676,7 @@ bool FormatEntity::Format(const Entry &entry, Stream &s, ss, ValueObject::ValueObjectRepresentationStyle:: eValueObjectRepresentationStyleSummary, eFormatDefault, - ValueObject::PrintableRepresentationSpecialCases:: - ePrintableRepresentationSpecialCasesAllow, + ValueObject::PrintableRepresentationSpecialCases::eAllow, false); } diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index 235f30595b5..edd549059b2 100644 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -1279,10 +1279,9 @@ bool ValueObject::DumpPrintableRepresentation( Flags flags(GetTypeInfo()); - bool allow_special = ((special & ePrintableRepresentationSpecialCasesAllow) == - ePrintableRepresentationSpecialCasesAllow); - bool only_special = ((special & ePrintableRepresentationSpecialCasesOnly) == - ePrintableRepresentationSpecialCasesOnly); + bool allow_special = + (special == ValueObject::PrintableRepresentationSpecialCases::eAllow); + const bool only_special = false; if (allow_special) { if (flags.AnySet(eTypeIsArray | eTypeIsPointer) && |

