From 8f79f0cb7d23769d3ef6e9415e386ca96b14c1ba Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 16 Dec 2019 23:05:23 -0800 Subject: [PATCH] [MC] Delete redundant alignment update from MCELFStreamer::EmitCommonSymbol. NFC EmitValueToAlignment() updates the maximum alignment. --- lib/MC/MCELFStreamer.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/MC/MCELFStreamer.cpp b/lib/MC/MCELFStreamer.cpp index c2e2beb23cb..0a0c30df9c0 100644 --- a/lib/MC/MCELFStreamer.cpp +++ b/lib/MC/MCELFStreamer.cpp @@ -308,10 +308,6 @@ void MCELFStreamer::EmitCommonSymbol(MCSymbol *S, uint64_t Size, EmitLabel(Symbol); EmitZeros(Size); - // Update the maximum alignment of the section if necessary. - if (ByteAlignment > Section.getAlignment()) - Section.setAlignment(Align(ByteAlignment)); - SwitchSection(P.first, P.second); } else { if(Symbol->declareCommon(Size, ByteAlignment))