diff options
Diffstat (limited to 'source/Core')
| -rw-r--r-- | source/Core/FormatEntity.cpp | 12 | ||||
| -rw-r--r-- | source/Core/StructuredData.cpp | 4 | 
2 files changed, 8 insertions, 8 deletions
| diff --git a/source/Core/FormatEntity.cpp b/source/Core/FormatEntity.cpp index 9fb294aad2fb..e3c346f79d6b 100644 --- a/source/Core/FormatEntity.cpp +++ b/source/Core/FormatEntity.cpp @@ -1040,24 +1040,24 @@ static bool FormatThreadExtendedInfoRecurse(        thread_info_dictionary->GetObjectForDotSeparatedPath(path);    if (value) { -    if (value->GetType() == StructuredData::Type::eTypeInteger) { +    if (value->GetType() == eStructuredDataTypeInteger) {        const char *token_format = "0x%4.4" PRIx64;        if (!entry.printf_format.empty())          token_format = entry.printf_format.c_str();        s.Printf(token_format, value->GetAsInteger()->GetValue());        return true; -    } else if (value->GetType() == StructuredData::Type::eTypeFloat) { +    } else if (value->GetType() == eStructuredDataTypeFloat) {        s.Printf("%f", value->GetAsFloat()->GetValue());        return true; -    } else if (value->GetType() == StructuredData::Type::eTypeString) { +    } else if (value->GetType() == eStructuredDataTypeString) {        s.Format("{0}", value->GetAsString()->GetValue());        return true; -    } else if (value->GetType() == StructuredData::Type::eTypeArray) { +    } else if (value->GetType() == eStructuredDataTypeArray) {        if (value->GetAsArray()->GetSize() > 0) {          s.Printf("%zu", value->GetAsArray()->GetSize());          return true;        } -    } else if (value->GetType() == StructuredData::Type::eTypeDictionary) { +    } else if (value->GetType() == eStructuredDataTypeDictionary) {        s.Printf("%zu",                 value->GetAsDictionary()->GetKeys()->GetAsArray()->GetSize());        return true; @@ -1346,7 +1346,7 @@ bool FormatEntity::Format(const Entry &entry, Stream &s,        if (thread) {          StructuredData::ObjectSP object_sp = thread->GetExtendedInfo();          if (object_sp && -            object_sp->GetType() == StructuredData::Type::eTypeDictionary) { +            object_sp->GetType() == eStructuredDataTypeDictionary) {            if (FormatThreadExtendedInfoRecurse(entry, object_sp, sc, exe_ctx, s))              return true;          } diff --git a/source/Core/StructuredData.cpp b/source/Core/StructuredData.cpp index d52b7730cc65..b03665ed3485 100644 --- a/source/Core/StructuredData.cpp +++ b/source/Core/StructuredData.cpp @@ -184,7 +184,7 @@ StructuredData::ObjectSP StructuredData::ParseJSON(std::string json_text) {  StructuredData::ObjectSP  StructuredData::Object::GetObjectForDotSeparatedPath(llvm::StringRef path) { -  if (this->GetType() == Type::eTypeDictionary) { +  if (this->GetType() == lldb::eStructuredDataTypeDictionary) {      std::pair<llvm::StringRef, llvm::StringRef> match = path.split('.');      std::string key = match.first.str();      ObjectSP value = this->GetAsDictionary()->GetValueForKey(key); @@ -200,7 +200,7 @@ StructuredData::Object::GetObjectForDotSeparatedPath(llvm::StringRef path) {      return ObjectSP();    } -  if (this->GetType() == Type::eTypeArray) { +  if (this->GetType() == lldb::eStructuredDataTypeArray) {      std::pair<llvm::StringRef, llvm::StringRef> match = path.split('[');      if (match.second.size() == 0) {        return this->shared_from_this(); | 
