[lldb] Change Breakpoint::AddName return value (#71236)

The return value is completely unused. Let's just return nothing.
This commit is contained in:
Alex Langford
2023-11-09 13:34:59 -08:00
committed by GitHub
parent d8a4011f5b
commit fe98cce6a9
2 changed files with 3 additions and 5 deletions

View File

@@ -523,9 +523,8 @@ public:
lldb::SearchFilterSP GetSearchFilter() { return m_filter_sp; }
private: // The target needs to manage adding & removing names. It will do the
// checking for name validity as well.
bool AddName(llvm::StringRef new_name);
private:
void AddName(llvm::StringRef new_name);
void RemoveName(const char *name_to_remove) {
if (name_to_remove)

View File

@@ -841,9 +841,8 @@ bool Breakpoint::HasResolvedLocations() const {
size_t Breakpoint::GetNumLocations() const { return m_locations.GetSize(); }
bool Breakpoint::AddName(llvm::StringRef new_name) {
void Breakpoint::AddName(llvm::StringRef new_name) {
m_name_list.insert(new_name.str());
return true;
}
void Breakpoint::GetDescription(Stream *s, lldb::DescriptionLevel level,