diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:06:29 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:06:29 +0000 | 
| commit | 94994d372d014ce4c8758b9605d63fae651bd8aa (patch) | |
| tree | 51c0b708bd59f205d6b35cb2a8c24d62f0c33d77 /source/Breakpoint/Breakpoint.cpp | |
| parent | 39be7ce23363d12ae3e49aeb1fdb2bfeb892e836 (diff) | |
Notes
Diffstat (limited to 'source/Breakpoint/Breakpoint.cpp')
| -rw-r--r-- | source/Breakpoint/Breakpoint.cpp | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/source/Breakpoint/Breakpoint.cpp b/source/Breakpoint/Breakpoint.cpp index 1dc029654bfc..131d2a707d44 100644 --- a/source/Breakpoint/Breakpoint.cpp +++ b/source/Breakpoint/Breakpoint.cpp @@ -7,12 +7,8 @@  //  //===----------------------------------------------------------------------===// -// C Includes -// C++ Includes -// Other libraries and framework includes  #include "llvm/Support/Casting.h" -// Project includes  #include "lldb/Breakpoint/Breakpoint.h"  #include "lldb/Breakpoint/BreakpointLocation.h"  #include "lldb/Breakpoint/BreakpointLocationCollection.h" @@ -785,8 +781,8 @@ void Breakpoint::ModuleReplaced(ModuleSP old_module_sp,            // we go.            if (old_id_vec.size() == new_id_vec.size()) { -            llvm::sort(old_id_vec.begin(), old_id_vec.end()); -            llvm::sort(new_id_vec.begin(), new_id_vec.end()); +            llvm::sort(old_id_vec); +            llvm::sort(new_id_vec);              size_t num_elements = old_id_vec.size();              for (size_t idx = 0; idx < num_elements; idx++) {                BreakpointLocationSP old_loc_sp = @@ -857,6 +853,10 @@ size_t Breakpoint::GetNumResolvedLocations() const {    return m_locations.GetNumResolvedLocations();  } +bool Breakpoint::HasResolvedLocations() const { +  return GetNumResolvedLocations() > 0; +} +  size_t Breakpoint::GetNumLocations() const { return m_locations.GetSize(); }  bool Breakpoint::AddName(llvm::StringRef new_name) {  | 
