Skip to content

Commit 338e38b

Browse files
committed
ELFObjectWriter: Delete redundant registerSymbol
MCELFStreamer::changeSection has registered the group signature symbol.
1 parent 6e31a6b commit 338e38b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/MC/ELFObjectWriter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,6 @@ uint64_t ELFWriter::writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) {
11191119
MCSectionELF *RelSection = createRelocationSection(Ctx, Section);
11201120

11211121
if (SignatureSymbol) {
1122-
Asm.registerSymbol(*SignatureSymbol);
11231122
unsigned &GroupIdx = RevGroupMap[SignatureSymbol];
11241123
if (!GroupIdx) {
11251124
MCSectionELF *Group = Ctx.createELFGroupSection(SignatureSymbol);

0 commit comments

Comments
 (0)