Skip to content

Commit fe98cce

Browse files
authored
[lldb] Change Breakpoint::AddName return value (#71236)
The return value is completely unused. Let's just return nothing.
1 parent d8a4011 commit fe98cce

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

lldb/include/lldb/Breakpoint/Breakpoint.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -523,9 +523,8 @@ class Breakpoint : public std::enable_shared_from_this<Breakpoint>,
523523

524524
lldb::SearchFilterSP GetSearchFilter() { return m_filter_sp; }
525525

526-
private: // The target needs to manage adding & removing names. It will do the
527-
// checking for name validity as well.
528-
bool AddName(llvm::StringRef new_name);
526+
private:
527+
void AddName(llvm::StringRef new_name);
529528

530529
void RemoveName(const char *name_to_remove) {
531530
if (name_to_remove)

lldb/source/Breakpoint/Breakpoint.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,9 +841,8 @@ bool Breakpoint::HasResolvedLocations() const {
841841

842842
size_t Breakpoint::GetNumLocations() const { return m_locations.GetSize(); }
843843

844-
bool Breakpoint::AddName(llvm::StringRef new_name) {
844+
void Breakpoint::AddName(llvm::StringRef new_name) {
845845
m_name_list.insert(new_name.str());
846-
return true;
847846
}
848847

849848
void Breakpoint::GetDescription(Stream *s, lldb::DescriptionLevel level,

0 commit comments

Comments
 (0)