diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2023-05-14 19:58:16 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2023-05-14 20:18:47 -0700 |
commit | 3ebb33632a1509450fdbc1fb6a21107a0a513072 (patch) | |
tree | b71ac7a9114332ab18e5e5f9f0d78dbcef5fc4a4 /lldb/source/Commands/CommandObjectRegister.cpp | |
parent | 245549c57517de3b8fa478512bb1ae4295215e31 (diff) | |
download | llvm-3ebb33632a1509450fdbc1fb6a21107a0a513072.zip llvm-3ebb33632a1509450fdbc1fb6a21107a0a513072.tar.gz llvm-3ebb33632a1509450fdbc1fb6a21107a0a513072.tar.bz2 |
[lldb] Complete OptionValue cleanup (NFC)
Make the `Get.*Value` and `Set.*Value` function private and migrate the
last remaining call sites to the new overloaded/templated functions.
Diffstat (limited to 'lldb/source/Commands/CommandObjectRegister.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectRegister.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectRegister.cpp b/lldb/source/Commands/CommandObjectRegister.cpp index 80813cd..7c1155b 100644 --- a/lldb/source/Commands/CommandObjectRegister.cpp +++ b/lldb/source/Commands/CommandObjectRegister.cpp @@ -171,8 +171,9 @@ protected: const size_t set_array_size = m_command_options.set_indexes.GetSize(); if (set_array_size > 0) { for (size_t i = 0; i < set_array_size; ++i) { - set_idx = m_command_options.set_indexes[i]->GetUInt64Value().value_or( - UINT32_MAX); + set_idx = + m_command_options.set_indexes[i]->GetValueAs<uint64_t>().value_or( + UINT32_MAX); if (set_idx < reg_ctx->GetRegisterSetCount()) { if (!DumpRegisterSet(m_exe_ctx, strm, reg_ctx, set_idx)) { if (errno) |