From 97182013c4587e85d5ce3231e66fea41d58d4fa9 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. --- llvm/lib/MC/MCELFStreamer.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/llvm/lib/MC/MCELFStreamer.cpp b/llvm/lib/MC/MCELFStreamer.cpp index c2e2beb23cb7..0a0c30df9c07 100644 --- a/llvm/lib/MC/MCELFStreamer.cpp +++ b/llvm/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))