Skip to content

Commit 8e8c455

Browse files
committed
ELFObjectWriter: Use DenseMap+SmallVector. NFC
1 parent dce1828 commit 8e8c455

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/MC/ELFObjectWriter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ uint64_t ELFWriter::writeObject(MCAssembler &Asm) {
10751075
RevGroupMapTy RevGroupMap;
10761076
SectionIndexMapTy SectionIndexMap;
10771077

1078-
std::map<const MCSymbol *, std::vector<const MCSectionELF *>> GroupMembers;
1078+
DenseMap<const MCSymbol *, SmallVector<const MCSectionELF *, 0>> GroupMembers;
10791079

10801080
// Write out the ELF header ...
10811081
writeHeader(Asm);
@@ -1111,7 +1111,7 @@ uint64_t ELFWriter::writeObject(MCAssembler &Asm) {
11111111
Group->setAlignment(Align(4));
11121112
Groups.push_back(Group);
11131113
}
1114-
std::vector<const MCSectionELF *> &Members =
1114+
SmallVector<const MCSectionELF *, 0> &Members =
11151115
GroupMembers[SignatureSymbol];
11161116
Members.push_back(&Section);
11171117
if (RelSection)

0 commit comments

Comments
 (0)