[llvm] r239168 - Save a map lookup. NFC.
Rafael Espindola
rafael.espindola at gmail.com
Fri Jun 5 10:54:25 PDT 2015
Author: rafael
Date: Fri Jun 5 12:54:25 2015
New Revision: 239168
URL: http://llvm.org/viewvc/llvm-project?rev=239168&view=rev
Log:
Save a map lookup. NFC.
Modified:
llvm/trunk/lib/MC/ELFObjectWriter.cpp
Modified: llvm/trunk/lib/MC/ELFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/ELFObjectWriter.cpp?rev=239168&r1=239167&r2=239168&view=diff
==============================================================================
--- llvm/trunk/lib/MC/ELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/ELFObjectWriter.cpp Fri Jun 5 12:54:25 2015
@@ -1219,9 +1219,11 @@ void ELFObjectWriter::writeObject(MCAsse
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);
More information about the llvm-commits
mailing list