[PATCH] D102485: Move FunctionInfo in addFunctionInfo rather than copying.
Simon Giesecke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 18 03:24:05 PDT 2021
simon.giesecke updated this revision to Diff 346098.
simon.giesecke retitled this revision from "Move FunctionInfo in GsymCreator::addFunctionInfo rather than copying." to "Move FunctionInfo in addFunctionInfo rather than copying.".
simon.giesecke added a comment.
Update using arc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102485/new/
https://reviews.llvm.org/D102485
Files:
llvm/lib/DebugInfo/GSYM/GsymCreator.cpp
Index: llvm/lib/DebugInfo/GSYM/GsymCreator.cpp
===================================================================
--- llvm/lib/DebugInfo/GSYM/GsymCreator.cpp
+++ llvm/lib/DebugInfo/GSYM/GsymCreator.cpp
@@ -314,7 +314,7 @@
void GsymCreator::addFunctionInfo(FunctionInfo &&FI) {
std::lock_guard<std::recursive_mutex> Guard(Mutex);
Ranges.insert(FI.Range);
- Funcs.emplace_back(FI);
+ Funcs.emplace_back(std::move(FI));
}
void GsymCreator::forEachFunctionInfo(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102485.346098.patch
Type: text/x-patch
Size: 472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210518/efc2a44b/attachment.bin>
More information about the llvm-commits
mailing list