mirror of
https://github.com/intel/llvm.git
synced 2026-01-18 16:50:51 +08:00
[lldb][NFC] Remove unused parameter
Rename search-filter's CopyForBreakpoint to CreateCopy, since they don't do anything with breakpoints.
This commit is contained in:
@@ -187,7 +187,7 @@ public:
|
||||
/// Standard "Dump" method. At present it does nothing.
|
||||
virtual void Dump(Stream *s) const;
|
||||
|
||||
lldb::SearchFilterSP CopyForBreakpoint(Breakpoint &breakpoint);
|
||||
lldb::SearchFilterSP CreateCopy(lldb::TargetSP& target_sp);
|
||||
|
||||
static lldb::SearchFilterSP
|
||||
CreateFromStructuredData(const lldb::TargetSP& target_sp,
|
||||
@@ -261,13 +261,13 @@ protected:
|
||||
const SymbolContext &context,
|
||||
Searcher &searcher);
|
||||
|
||||
virtual lldb::SearchFilterSP DoCopyForBreakpoint(Breakpoint &breakpoint) = 0;
|
||||
virtual lldb::SearchFilterSP DoCreateCopy() = 0;
|
||||
|
||||
void SetTarget(lldb::TargetSP &target_sp) { m_target_sp = target_sp; }
|
||||
|
||||
lldb::TargetSP
|
||||
m_target_sp; // Every filter has to be associated with a target for
|
||||
// now since you need a starting place for the search.
|
||||
lldb::TargetSP m_target_sp; // Every filter has to be associated with
|
||||
// a target for now since you need a starting
|
||||
// place for the search.
|
||||
private:
|
||||
unsigned char SubclassID;
|
||||
};
|
||||
@@ -295,7 +295,7 @@ public:
|
||||
StructuredData::ObjectSP SerializeToStructuredData() override;
|
||||
|
||||
protected:
|
||||
lldb::SearchFilterSP DoCopyForBreakpoint(Breakpoint &breakpoint) override;
|
||||
lldb::SearchFilterSP DoCreateCopy() override;
|
||||
};
|
||||
|
||||
/// \class SearchFilterByModule SearchFilter.h "lldb/Core/SearchFilter.h" This
|
||||
@@ -341,7 +341,7 @@ public:
|
||||
StructuredData::ObjectSP SerializeToStructuredData() override;
|
||||
|
||||
protected:
|
||||
lldb::SearchFilterSP DoCopyForBreakpoint(Breakpoint &breakpoint) override;
|
||||
lldb::SearchFilterSP DoCreateCopy() override;
|
||||
|
||||
private:
|
||||
FileSpec m_module_spec;
|
||||
@@ -394,7 +394,7 @@ public:
|
||||
void SerializeUnwrapped(StructuredData::DictionarySP &options_dict_sp);
|
||||
|
||||
protected:
|
||||
lldb::SearchFilterSP DoCopyForBreakpoint(Breakpoint &breakpoint) override;
|
||||
lldb::SearchFilterSP DoCreateCopy() override;
|
||||
|
||||
protected:
|
||||
FileSpecList m_module_spec_list;
|
||||
@@ -432,7 +432,7 @@ public:
|
||||
StructuredData::ObjectSP SerializeToStructuredData() override;
|
||||
|
||||
protected:
|
||||
lldb::SearchFilterSP DoCopyForBreakpoint(Breakpoint &breakpoint) override;
|
||||
lldb::SearchFilterSP DoCreateCopy() override;
|
||||
|
||||
private:
|
||||
FileSpecList m_cu_spec_list;
|
||||
|
||||
@@ -51,7 +51,7 @@ protected:
|
||||
LanguageRuntime *m_language_runtime;
|
||||
lldb::SearchFilterSP m_filter_sp;
|
||||
|
||||
lldb::SearchFilterSP DoCopyForBreakpoint(Breakpoint &breakpoint) override;
|
||||
lldb::SearchFilterSP DoCreateCopy() override;
|
||||
|
||||
void UpdateModuleListIfNeeded();
|
||||
};
|
||||
|
||||
@@ -74,7 +74,7 @@ BreakpointSP Breakpoint::CopyFromBreakpoint(TargetSP new_target,
|
||||
BreakpointSP bp(new Breakpoint(*new_target, bp_to_copy_from));
|
||||
// Now go through and copy the filter & resolver:
|
||||
bp->m_resolver_sp = bp_to_copy_from.m_resolver_sp->CopyForBreakpoint(*bp);
|
||||
bp->m_filter_sp = bp_to_copy_from.m_filter_sp->CopyForBreakpoint(*bp);
|
||||
bp->m_filter_sp = bp_to_copy_from.m_filter_sp->CreateCopy(new_target);
|
||||
return bp;
|
||||
}
|
||||
|
||||
|
||||
@@ -161,9 +161,8 @@ void SearchFilter::GetDescription(Stream *s) {}
|
||||
|
||||
void SearchFilter::Dump(Stream *s) const {}
|
||||
|
||||
lldb::SearchFilterSP SearchFilter::CopyForBreakpoint(Breakpoint &breakpoint) {
|
||||
SearchFilterSP ret_sp = DoCopyForBreakpoint(breakpoint);
|
||||
TargetSP target_sp = breakpoint.GetTargetSP();
|
||||
lldb::SearchFilterSP SearchFilter::CreateCopy(lldb::TargetSP& target_sp) {
|
||||
SearchFilterSP ret_sp = DoCreateCopy();
|
||||
ret_sp->SetTarget(target_sp);
|
||||
return ret_sp;
|
||||
}
|
||||
@@ -391,8 +390,7 @@ bool SearchFilterForUnconstrainedSearches::ModulePasses(
|
||||
return true;
|
||||
}
|
||||
|
||||
lldb::SearchFilterSP SearchFilterForUnconstrainedSearches::DoCopyForBreakpoint(
|
||||
Breakpoint &breakpoint) {
|
||||
SearchFilterSP SearchFilterForUnconstrainedSearches::DoCreateCopy() {
|
||||
return std::make_shared<SearchFilterForUnconstrainedSearches>(*this);
|
||||
}
|
||||
|
||||
@@ -467,8 +465,7 @@ uint32_t SearchFilterByModule::GetFilterRequiredItems() {
|
||||
|
||||
void SearchFilterByModule::Dump(Stream *s) const {}
|
||||
|
||||
lldb::SearchFilterSP
|
||||
SearchFilterByModule::DoCopyForBreakpoint(Breakpoint &breakpoint) {
|
||||
SearchFilterSP SearchFilterByModule::DoCreateCopy() {
|
||||
return std::make_shared<SearchFilterByModule>(*this);
|
||||
}
|
||||
|
||||
@@ -612,8 +609,7 @@ uint32_t SearchFilterByModuleList::GetFilterRequiredItems() {
|
||||
|
||||
void SearchFilterByModuleList::Dump(Stream *s) const {}
|
||||
|
||||
lldb::SearchFilterSP
|
||||
SearchFilterByModuleList::DoCopyForBreakpoint(Breakpoint &breakpoint) {
|
||||
lldb::SearchFilterSP SearchFilterByModuleList::DoCreateCopy() {
|
||||
return std::make_shared<SearchFilterByModuleList>(*this);
|
||||
}
|
||||
|
||||
@@ -834,7 +830,6 @@ uint32_t SearchFilterByModuleListAndCU::GetFilterRequiredItems() {
|
||||
|
||||
void SearchFilterByModuleListAndCU::Dump(Stream *s) const {}
|
||||
|
||||
lldb::SearchFilterSP
|
||||
SearchFilterByModuleListAndCU::DoCopyForBreakpoint(Breakpoint &breakpoint) {
|
||||
SearchFilterSP SearchFilterByModuleListAndCU::DoCreateCopy() {
|
||||
return std::make_shared<SearchFilterByModuleListAndCU>(*this);
|
||||
}
|
||||
|
||||
@@ -78,8 +78,7 @@ void ExceptionSearchFilter::UpdateModuleListIfNeeded() {
|
||||
}
|
||||
}
|
||||
|
||||
SearchFilterSP
|
||||
ExceptionSearchFilter::DoCopyForBreakpoint(Breakpoint &breakpoint) {
|
||||
SearchFilterSP ExceptionSearchFilter::DoCreateCopy() {
|
||||
return SearchFilterSP(
|
||||
new ExceptionSearchFilter(TargetSP(), m_language, false));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user