diff options
Diffstat (limited to 'source/Breakpoint/BreakpointIDList.cpp')
-rw-r--r-- | source/Breakpoint/BreakpointIDList.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/Breakpoint/BreakpointIDList.cpp b/source/Breakpoint/BreakpointIDList.cpp index 1e695fae69951..de68c44ec6a4c 100644 --- a/source/Breakpoint/BreakpointIDList.cpp +++ b/source/Breakpoint/BreakpointIDList.cpp @@ -122,7 +122,7 @@ void BreakpointIDList::FindAndReplaceIDRanges(Args &old_args, Target *target, for (size_t i = 0; i < old_args.size(); ++i) { bool is_range = false; - current_arg = old_args[i].ref; + current_arg = old_args[i].ref(); if (!allow_locations && current_arg.contains('.')) { result.AppendErrorWithFormat( "Breakpoint locations not allowed, saw location: %s.", @@ -146,16 +146,16 @@ void BreakpointIDList::FindAndReplaceIDRanges(Args &old_args, Target *target, } else names_found.insert(current_arg); } else if ((i + 2 < old_args.size()) && - BreakpointID::IsRangeIdentifier(old_args[i + 1].ref) && + BreakpointID::IsRangeIdentifier(old_args[i + 1].ref()) && BreakpointID::IsValidIDExpression(current_arg) && - BreakpointID::IsValidIDExpression(old_args[i + 2].ref)) { + BreakpointID::IsValidIDExpression(old_args[i + 2].ref())) { range_from = current_arg; - range_to = old_args[i + 2].ref; + range_to = old_args[i + 2].ref(); is_range = true; i = i + 2; } else { // See if user has specified id.* - llvm::StringRef tmp_str = old_args[i].ref; + llvm::StringRef tmp_str = old_args[i].ref(); size_t pos = tmp_str.find('.'); if (pos != llvm::StringRef::npos) { llvm::StringRef bp_id_str = tmp_str.substr(0, pos); |