Save a map lookup. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239168 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2015-06-05 17:54:25 +00:00
parent 5a0d6b758c
commit c1233a84b2

View File

@ -1219,9 +1219,11 @@ void ELFObjectWriter::writeObject(MCAssembler &Asm,
Group->setAlignment(4);
Groups.push_back(Group);
}
GroupMembers[SignatureSymbol].push_back(&Section);
std::vector<const MCSectionELF *> &Members =
GroupMembers[SignatureSymbol];
Members.push_back(&Section);
if (RelSection)
GroupMembers[SignatureSymbol].push_back(RelSection);
Members.push_back(RelSection);
}
SectionIndexMap[&Section] = addToSectionTable(&Section);