summaryrefslogtreecommitdiffstats
path: root/lldb/source/Breakpoint/BreakpointIDList.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-09-17 02:00:02 +0000
committerZachary Turner <zturner@google.com>2016-09-17 02:00:02 +0000
commit6fa7681bb613f4b92889b55a232507671e8f39be (patch)
tree2b67bb2fac624c5cda50d4156b9e461dafdac2f1 /lldb/source/Breakpoint/BreakpointIDList.cpp
parent271106cbb9d1ed70d6e57b72612b6653ba20fb10 (diff)
downloadbcm5719-llvm-6fa7681bb613f4b92889b55a232507671e8f39be.tar.gz
bcm5719-llvm-6fa7681bb613f4b92889b55a232507671e8f39be.zip
Convert many functions to use StringRefs.
Where possible, remove the const char* version. To keep the risk and impact here minimal, I've only done the simplest functions. In the process, I found a few opportunities for adding some unit tests, so I added those as well. Tested on Windows, Linux, and OSX. llvm-svn: 281799
Diffstat (limited to 'lldb/source/Breakpoint/BreakpointIDList.cpp')
-rw-r--r--lldb/source/Breakpoint/BreakpointIDList.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Breakpoint/BreakpointIDList.cpp b/lldb/source/Breakpoint/BreakpointIDList.cpp
index 4c09bd7410b..0c5ff82082b 100644
--- a/lldb/source/Breakpoint/BreakpointIDList.cpp
+++ b/lldb/source/Breakpoint/BreakpointIDList.cpp
@@ -168,7 +168,8 @@ void BreakpointIDList::FindAndReplaceIDRanges(Args &old_args, Target *target,
is_range = true;
range_start.assign(current_arg, range_start_len);
range_end = current_arg + range_end_pos;
- } else if (BreakpointID::StringIsBreakpointName(current_arg, error)) {
+ } else if (BreakpointID::StringIsBreakpointName(
+ llvm::StringRef(current_arg), error)) {
if (!error.Success()) {
new_args.Clear();
result.AppendError(error.AsCString());
OpenPOWER on IntegriCloud