summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2016-11-07 23:32:20 +0000
committerEnrico Granata <egranata@apple.com>2016-11-07 23:32:20 +0000
commit65d86e4fa5dd383dfebe2fc11c4cdf404c8914d2 (patch)
treee94b88c22e73c5a3ca8ddeb1977a6940eb599378 /lldb/source/Core
parent583a307e1744278d95ca83a13d7b40eac2b3c2c1 (diff)
downloadbcm5719-llvm-65d86e4fa5dd383dfebe2fc11c4cdf404c8914d2.tar.gz
bcm5719-llvm-65d86e4fa5dd383dfebe2fc11c4cdf404c8914d2.zip
Simplify the PrintableRepresentationSpecialCases code; we never used the ePrintableRepresentationSpecialCasesOnly value and with enum classes the names doesn't need to be that long
llvm-svn: 286176
Diffstat (limited to 'lldb/source/Core')
-rw-r--r--lldb/source/Core/FormatEntity.cpp5
-rw-r--r--lldb/source/Core/ValueObject.cpp7
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) &&
OpenPOWER on IntegriCloud