forked from OSchip/llvm-project
Move FunctionInfo in addFunctionInfo rather than copying.
Differential Revision: https://reviews.llvm.org/D102485
This commit is contained in:
parent
f29c4c6097
commit
4ea4d9c066
|
@ -314,7 +314,7 @@ uint32_t GsymCreator::insertString(StringRef S, bool Copy) {
|
|||
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(
|
||||
|
|
Loading…
Reference in New Issue