mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 01:15:50 +08:00
[lldb] D66174 RegularExpression cleanup
I find as a good cleanup to drop the Compile method. As I do not find TIMTOWTDI as an advantage and there is already constructor parameter to compile the regex. Differential Revision: https://reviews.llvm.org/D66392 llvm-svn: 369352
This commit is contained in:
@@ -313,10 +313,10 @@ bool ThreadPlanStepInRange::ShouldStop(Event *event_ptr) {
|
||||
|
||||
void ThreadPlanStepInRange::SetAvoidRegexp(const char *name) {
|
||||
auto name_ref = llvm::StringRef::withNullAsEmpty(name);
|
||||
if (!m_avoid_regexp_up)
|
||||
if (m_avoid_regexp_up)
|
||||
*m_avoid_regexp_up = RegularExpression(name_ref);
|
||||
else
|
||||
m_avoid_regexp_up.reset(new RegularExpression(name_ref));
|
||||
|
||||
m_avoid_regexp_up->Compile(name_ref);
|
||||
}
|
||||
|
||||
void ThreadPlanStepInRange::SetDefaultFlagValue(uint32_t new_value) {
|
||||
|
||||
Reference in New Issue
Block a user