projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d8929c
)
[MC] Delete redundant alignment update from MCELFStreamer::EmitCommonSymbol. NFC
author
Fangrui Song
<maskray@google.com>
Tue, 17 Dec 2019 07:05:23 +0000
(23:05 -0800)
committer
Fangrui Song
<maskray@google.com>
Tue, 17 Dec 2019 07:08:32 +0000
(23:08 -0800)
EmitValueToAlignment() updates the maximum alignment.
llvm/lib/MC/MCELFStreamer.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/MC/MCELFStreamer.cpp
b/llvm/lib/MC/MCELFStreamer.cpp
index
c2e2beb
..
0a0c30d
100644
(file)
--- 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))