summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCELFStreamer.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-12-16 23:05:23 -0800
committerFangrui Song <maskray@google.com>2019-12-16 23:08:32 -0800
commit97182013c4587e85d5ce3231e66fea41d58d4fa9 (patch)
tree2595e795a1802e7f0d0f3a6ff131bc8c197d56be /llvm/lib/MC/MCELFStreamer.cpp
parent0d8929ce76dad4f9e1d19cb979c92bea10ec2747 (diff)
downloadbcm5719-llvm-97182013c4587e85d5ce3231e66fea41d58d4fa9.tar.gz
bcm5719-llvm-97182013c4587e85d5ce3231e66fea41d58d4fa9.zip
[MC] Delete redundant alignment update from MCELFStreamer::EmitCommonSymbol. NFC
EmitValueToAlignment() updates the maximum alignment.
Diffstat (limited to 'llvm/lib/MC/MCELFStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCELFStreamer.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCELFStreamer.cpp b/llvm/lib/MC/MCELFStreamer.cpp
index c2e2beb23cb..0a0c30df9c0 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))
OpenPOWER on IntegriCloud