aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectBreakpoint.cpp
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2019-09-04 09:47:18 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2019-09-04 09:47:18 +0000
commit5aa1d81969fb1b91e5ab5be446a3a71bd2e1ecdc (patch)
tree9df4be634b4ca60aca65f097021c2d8d7116af26 /lldb/source/Commands/CommandObjectBreakpoint.cpp
parent915f9785e052150f268bc62a9ce00fcae2b5558c (diff)
downloadllvm-5aa1d81969fb1b91e5ab5be446a3a71bd2e1ecdc.zip
llvm-5aa1d81969fb1b91e5ab5be446a3a71bd2e1ecdc.tar.gz
llvm-5aa1d81969fb1b91e5ab5be446a3a71bd2e1ecdc.tar.bz2
Code cleanup: Change FormattersContainer::KeyType from SP to rvalue
There is now std::shared_ptr passed around which is expensive for manycore CPUs. Most of the times (except for 3 cases) it is now just std::moved with no CPU locks needed. It also makes it possible to sort the keys (which is now not needed much after D66398). Differential revision: https://reviews.llvm.org/D67049 llvm-svn: 370863
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpoint.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectBreakpoint.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp
index 5300940..60a5e92 100644
--- a/lldb/source/Commands/CommandObjectBreakpoint.cpp
+++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp
@@ -668,7 +668,7 @@ protected:
}
bp_sp = target.CreateFuncRegexBreakpoint(
- &(m_options.m_modules), &(m_options.m_filenames), regexp,
+ &(m_options.m_modules), &(m_options.m_filenames), std::move(regexp),
m_options.m_language, m_options.m_skip_prologue, internal,
m_options.m_hardware);
}
@@ -699,7 +699,7 @@ protected:
}
bp_sp = target.CreateSourceRegexBreakpoint(
&(m_options.m_modules), &(m_options.m_filenames),
- m_options.m_source_regex_func_names, regexp, internal,
+ m_options.m_source_regex_func_names, std::move(regexp), internal,
m_options.m_hardware, m_options.m_move_to_nearest_code);
} break;
case eSetTypeException: {