mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Reduce duplicated hash map lookups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162362 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -396,8 +396,7 @@ void MachObjectWriter::BindIndirectSymbols(MCAssembler &Asm) {
|
||||
continue;
|
||||
|
||||
// Initialize the section indirect symbol base, if necessary.
|
||||
if (!IndirectSymBase.count(it->SectionData))
|
||||
IndirectSymBase[it->SectionData] = IndirectIndex;
|
||||
IndirectSymBase.insert(std::make_pair(it->SectionData, IndirectIndex));
|
||||
|
||||
Asm.getOrCreateSymbolData(*it->Symbol);
|
||||
}
|
||||
@@ -414,8 +413,7 @@ void MachObjectWriter::BindIndirectSymbols(MCAssembler &Asm) {
|
||||
continue;
|
||||
|
||||
// Initialize the section indirect symbol base, if necessary.
|
||||
if (!IndirectSymBase.count(it->SectionData))
|
||||
IndirectSymBase[it->SectionData] = IndirectIndex;
|
||||
IndirectSymBase.insert(std::make_pair(it->SectionData, IndirectIndex));
|
||||
|
||||
// Set the symbol type to undefined lazy, but only on construction.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user