mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00:00
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
This commit is contained in:
1 parent
915f9785e0
commit
5aa1d81969
13 files changed
+106
-108
No files matched your search
@@ -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: {
|
||||
|
||||
Reference in new issue
Block a user