mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-22 08:32:23 +00:00
[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);
|
||||
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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user