[MC] Delete redundant alignment update from MCELFStreamer::EmitCommonSymbol. NFC
authorFangrui Song <maskray@google.com>
Tue, 17 Dec 2019 07:05:23 +0000 (23:05 -0800)
committerFangrui Song <maskray@google.com>
Tue, 17 Dec 2019 07:08:32 +0000 (23:08 -0800)
EmitValueToAlignment() updates the maximum alignment.

llvm/lib/MC/MCELFStreamer.cpp

index c2e2beb..0a0c30d 100644 (file)
@@ -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))