mirror of
https://github.com/intel/llvm.git
synced 2026-02-04 20:00:11 +08:00
[lldb][NFCI] BreakpointResolverName ctor shouldn't unnecessarily copy data (#66001)
Instead of creating a copy of the vector, we should just pass a reference along. The only method that calls this Ctor also holds onto a non-mutable reference to the vector of strings so a copy should be unnecessary.
This commit is contained in:
@@ -56,12 +56,10 @@ BreakpointResolverName::BreakpointResolverName(
|
||||
}
|
||||
}
|
||||
|
||||
BreakpointResolverName::BreakpointResolverName(const BreakpointSP &bkpt,
|
||||
std::vector<std::string> names,
|
||||
FunctionNameType name_type_mask,
|
||||
LanguageType language,
|
||||
lldb::addr_t offset,
|
||||
bool skip_prologue)
|
||||
BreakpointResolverName::BreakpointResolverName(
|
||||
const BreakpointSP &bkpt, const std::vector<std::string> &names,
|
||||
FunctionNameType name_type_mask, LanguageType language, lldb::addr_t offset,
|
||||
bool skip_prologue)
|
||||
: BreakpointResolver(bkpt, BreakpointResolver::NameResolver, offset),
|
||||
m_match_type(Breakpoint::Exact), m_language(language),
|
||||
m_skip_prologue(skip_prologue) {
|
||||
|
||||
Reference in New Issue
Block a user