1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

[MC] Delete redundant alignment update from MCELFStreamer::EmitCommonSymbol. NFC

EmitValueToAlignment() updates the maximum alignment.
This commit is contained in:
Fangrui Song 2019-12-16 23:05:23 -08:00
parent 314a44ed4b
commit 8f79f0cb7d

View 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))