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/CommandObjectBreakpoint.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/CommandObjectBreakpoint.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectBreakpoint.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp index 3debbb3..30d2434 100644 --- a/lldb/source/Commands/CommandObjectBreakpoint.cpp +++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp @@ -1740,7 +1740,7 @@ protected: BreakpointSP bp_sp; if (m_bp_id.m_breakpoint.OptionWasSet()) { lldb::break_id_t bp_id = - m_bp_id.m_breakpoint.GetUInt64Value().value_or(0); + m_bp_id.m_breakpoint.GetValueAs<uint64_t>().value_or(0); bp_sp = target.GetBreakpointByID(bp_id); if (!bp_sp) { result.AppendErrorWithFormatv("Could not find specified breakpoint {0}", @@ -1756,8 +1756,10 @@ protected: if (!bp_name) continue; if (m_bp_id.m_help_string.OptionWasSet()) - bp_name->SetHelp( - m_bp_id.m_help_string.GetStringValue().value_or("").str().c_str()); + bp_name->SetHelp(m_bp_id.m_help_string.GetValueAs<llvm::StringRef>() + .value_or("") + .str() + .c_str()); if (bp_sp) target.ConfigureBreakpointName(*bp_name, bp_sp->GetOptions(), |