diff options
| author | Kazu Hirata <kazu@google.com> | 2022-06-19 09:12:01 -0700 |
|---|---|---|
| committer | Kazu Hirata <kazu@google.com> | 2022-06-19 09:12:01 -0700 |
| commit | aa88161b378ecb49388eefc28abe2926a229bcfc (patch) | |
| tree | 62b3139d6f697fdfbfeb913c8bc54c01fd86872d /lldb/source/Core/ValueObject.cpp | |
| parent | 0399473de886595d8ce3346f2cc99c94267496e5 (diff) | |
[lldb] Use value_or instead of getValueOr (NFC)
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
| -rw-r--r-- | lldb/source/Core/ValueObject.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index 0b99b988a67f..38918e4d9a92 100644 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -792,7 +792,7 @@ bool ValueObject::SetData(DataExtractor &data, Status &error) { uint64_t count = 0; const Encoding encoding = GetCompilerType().GetEncoding(count); - const size_t byte_size = GetByteSize().getValueOr(0); + const size_t byte_size = GetByteSize().value_or(0); Value::ValueType value_type = m_value.GetValueType(); @@ -1474,7 +1474,7 @@ bool ValueObject::SetValueFromCString(const char *value_str, Status &error) { uint64_t count = 0; const Encoding encoding = GetCompilerType().GetEncoding(count); - const size_t byte_size = GetByteSize().getValueOr(0); + const size_t byte_size = GetByteSize().value_or(0); Value::ValueType value_type = m_value.GetValueType(); @@ -1656,13 +1656,13 @@ ValueObjectSP ValueObject::GetSyntheticBitFieldChild(uint32_t from, uint32_t to, uint32_t bit_field_offset = from; if (GetDataExtractor().GetByteOrder() == eByteOrderBig) bit_field_offset = - GetByteSize().getValueOr(0) * 8 - bit_field_size - bit_field_offset; + GetByteSize().value_or(0) * 8 - bit_field_size - bit_field_offset; // We haven't made a synthetic array member for INDEX yet, so lets make // one and cache it for any future reference. ValueObjectChild *synthetic_child = new ValueObjectChild( - *this, GetCompilerType(), index_const_str, - GetByteSize().getValueOr(0), 0, bit_field_size, bit_field_offset, - false, false, eAddressTypeInvalid, 0); + *this, GetCompilerType(), index_const_str, GetByteSize().value_or(0), + 0, bit_field_size, bit_field_offset, false, false, + eAddressTypeInvalid, 0); // Cache the value if we got one back... if (synthetic_child) { |
