mirror of
https://github.com/intel/llvm.git
synced 2026-01-14 03:50:17 +08:00
[lldb] Change Breakpoint::AddName return value (#71236)
The return value is completely unused. Let's just return nothing.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user