summaryrefslogtreecommitdiffstats
path: root/lldb/source/Breakpoint/BreakpointIDList.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-06-20 08:12:50 +0000
committerPavel Labath <labath@google.com>2018-06-20 08:12:50 +0000
commit16662f3c6ea9bd5cb3459b6ad71d52037f4b397a (patch)
tree590ca58876b8eac18ba17109e48ab39f44da0708 /lldb/source/Breakpoint/BreakpointIDList.cpp
parent42a1ff11fb10040375067018bd517e85711e7f5d (diff)
downloadbcm5719-llvm-16662f3c6ea9bd5cb3459b6ad71d52037f4b397a.tar.gz
bcm5719-llvm-16662f3c6ea9bd5cb3459b6ad71d52037f4b397a.zip
BreakpointIDList: Use llvm::ArrayRef instead of pointer+length pair
NFC llvm-svn: 335102
Diffstat (limited to 'lldb/source/Breakpoint/BreakpointIDList.cpp')
-rw-r--r--lldb/source/Breakpoint/BreakpointIDList.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/lldb/source/Breakpoint/BreakpointIDList.cpp b/lldb/source/Breakpoint/BreakpointIDList.cpp
index 8fa12720940..bc4c2a111fd 100644
--- a/lldb/source/Breakpoint/BreakpointIDList.cpp
+++ b/lldb/source/Breakpoint/BreakpointIDList.cpp
@@ -89,14 +89,13 @@ bool BreakpointIDList::FindBreakpointID(const char *bp_id_str,
return FindBreakpointID(*bp_id, position);
}
-void BreakpointIDList::InsertStringArray(const char **string_array,
- size_t array_size,
- CommandReturnObject &result) {
- if (string_array == nullptr)
+void BreakpointIDList::InsertStringArray(
+ llvm::ArrayRef<const char *> string_array, CommandReturnObject &result) {
+ if(string_array.empty())
return;
- for (uint32_t i = 0; i < array_size; ++i) {
- auto bp_id = BreakpointID::ParseCanonicalReference(string_array[i]);
+ for (const char *str : string_array) {
+ auto bp_id = BreakpointID::ParseCanonicalReference(str);
if (bp_id.hasValue())
m_breakpoint_ids.push_back(*bp_id);
}
OpenPOWER on IntegriCloud