mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 02:16:05 +00:00
[NFC][ThinLTO] Avoid temporary std::string (#130353)
Preparation for CFI Index refactoring, which will fix O(N^2) in ThinLTO indexing.
This commit is contained in:
parent
e4a6e2eb71
commit
d8e8892ddf
@ -1699,9 +1699,9 @@ void LowerTypeTestsModule::buildBitSetsFromFunctionsNative(
|
||||
|
||||
if (IsExported) {
|
||||
if (IsJumpTableCanonical)
|
||||
ExportSummary->cfiFunctionDefs().insert(std::string(F->getName()));
|
||||
ExportSummary->cfiFunctionDefs().emplace(F->getName());
|
||||
else
|
||||
ExportSummary->cfiFunctionDecls().insert(std::string(F->getName()));
|
||||
ExportSummary->cfiFunctionDecls().emplace(F->getName());
|
||||
}
|
||||
|
||||
if (!IsJumpTableCanonical) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user