summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCMachOStreamer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-01 14:34:40 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-01 14:34:40 +0000
commit499c99c2296d85617f274cca1ec53cc5e6367345 (patch)
treeeff33331aff092f712eff61f1f7feeba234a30af /llvm/lib/MC/MCMachOStreamer.cpp
parentf6289f24f7fb806b598151a812a4cc4985405723 (diff)
downloadbcm5719-llvm-499c99c2296d85617f274cca1ec53cc5e6367345.tar.gz
bcm5719-llvm-499c99c2296d85617f274cca1ec53cc5e6367345.zip
The fragment implies the section, don't store both.
This reduces MCSymbol from 64 to 56 bytes on x86_64. llvm-svn: 238747
Diffstat (limited to 'llvm/lib/MC/MCMachOStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCMachOStreamer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp
index 74ec6a8fe26..ff4b391789f 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -419,11 +419,11 @@ void MCMachOStreamer::EmitZerofill(MCSection *Section, MCSymbol *Symbol,
if (ByteAlignment != 1)
new MCAlignFragment(ByteAlignment, 0, 0, ByteAlignment, Section);
+ AssignSection(Symbol, Section);
+
MCFragment *F = new MCFillFragment(0, 0, Size, Section);
Symbol->setFragment(F);
- AssignSection(Symbol, Section);
-
// Update the maximum alignment on the zero fill section if necessary.
if (ByteAlignment > Section->getAlignment())
Section->setAlignment(ByteAlignment);
OpenPOWER on IntegriCloud