diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2019-09-04 09:47:18 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2019-09-04 09:47:18 +0000 |
commit | 5aa1d81969fb1b91e5ab5be446a3a71bd2e1ecdc (patch) | |
tree | 9df4be634b4ca60aca65f097021c2d8d7116af26 /lldb/source/Commands/CommandObjectBreakpoint.cpp | |
parent | 915f9785e052150f268bc62a9ce00fcae2b5558c (diff) | |
download | llvm-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.cpp | 4 |
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: { |