performance: use std::move instead of copy in linker.cpp

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2025-10-13 15:24:28 +00:00
committed by Compute-Runtime-Automation
parent f72ba16163
commit dd84a8483e

View File

@@ -232,7 +232,7 @@ bool LinkerInput::addSymbol(Elf::Elf<numBits> &elf, const SectionNameToSegmentId
auto symbolSectionName = elf.getSectionName(elfSymbol.shndx);
auto segment = getSegmentForSection(symbolSectionName);
if (segment == SegmentType::unknown) {
externalSymbols.push_back(symbolName);
externalSymbols.push_back(std::move(symbolName));
return false;
}