[MC] Delete redundant alignment update from MCELFStreamer::EmitCommonSymbol. NFC
EmitValueToAlignment() updates the maximum alignment.
This commit is contained in:
parent
0d8929ce76
commit
97182013c4
|
@ -308,10 +308,6 @@ void MCELFStreamer::EmitCommonSymbol(MCSymbol *S, uint64_t Size,
|
||||||
EmitLabel(Symbol);
|
EmitLabel(Symbol);
|
||||||
EmitZeros(Size);
|
EmitZeros(Size);
|
||||||
|
|
||||||
// Update the maximum alignment of the section if necessary.
|
|
||||||
if (ByteAlignment > Section.getAlignment())
|
|
||||||
Section.setAlignment(Align(ByteAlignment));
|
|
||||||
|
|
||||||
SwitchSection(P.first, P.second);
|
SwitchSection(P.first, P.second);
|
||||||
} else {
|
} else {
|
||||||
if(Symbol->declareCommon(Size, ByteAlignment))
|
if(Symbol->declareCommon(Size, ByteAlignment))
|
||||||
|
|
Loading…
Reference in New Issue