diff options
author | Pavel Labath <labath@google.com> | 2015-02-20 11:14:59 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2015-02-20 11:14:59 +0000 |
commit | c95f7e2a7cf103597bf5a002f021c24482a9ecea (patch) | |
tree | bcbcafa94a981a7dcebcdcc1e9f20860c53aedd5 /lldb/source/Commands/CommandObjectBreakpoint.cpp | |
parent | 0c5f05986544df86a3137f856bc370d04d88c11b (diff) | |
download | bcm5719-llvm-c95f7e2a7cf103597bf5a002f021c24482a9ecea.tar.gz bcm5719-llvm-c95f7e2a7cf103597bf5a002f021c24482a9ecea.zip |
Refactor OptionValue::SetValueFromCString to use llvm::StringRef
Reviewers: clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D7676
llvm-svn: 230005
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpoint.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectBreakpoint.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp index b4a6b48cabf..e36809f485f 100644 --- a/lldb/source/Commands/CommandObjectBreakpoint.cpp +++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp @@ -1950,15 +1950,15 @@ public: { case 'N': if (BreakpointID::StringIsBreakpointName(option_value, error) && error.Success()) - m_name.SetValueFromCString(option_value); + m_name.SetValueFromString(option_value); break; case 'B': - if (m_breakpoint.SetValueFromCString(option_value).Fail()) + if (m_breakpoint.SetValueFromString(option_value).Fail()) error.SetErrorStringWithFormat ("unrecognized value \"%s\" for breakpoint", option_value); break; case 'D': - if (m_use_dummy.SetValueFromCString(option_value).Fail()) + if (m_use_dummy.SetValueFromString(option_value).Fail()) error.SetErrorStringWithFormat ("unrecognized value \"%s\" for use-dummy", option_value); break; |