aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCMachOStreamer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-05-21 21:02:35 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-05-21 21:02:35 +0000
commit967d6a691499368cbb942e178a2526f5c00ce879 (patch)
tree3e3721f388e20721118b44c0af1cb29d50c734e1 /llvm/lib/MC/MCMachOStreamer.cpp
parent6a902f9d036266abd7963ee60bcd1c2187110f80 (diff)
downloadllvm-967d6a691499368cbb942e178a2526f5c00ce879.zip
llvm-967d6a691499368cbb942e178a2526f5c00ce879.tar.gz
llvm-967d6a691499368cbb942e178a2526f5c00ce879.tar.bz2
Stop forwarding (get|set)Aligment from MCSectionData to MCSection.
llvm-svn: 237956
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 c977780..3742a73 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -426,8 +426,8 @@ void MCMachOStreamer::EmitZerofill(MCSection *Section, MCSymbol *Symbol,
AssignSection(Symbol, Section);
// Update the maximum alignment on the zero fill section if necessary.
- if (ByteAlignment > SectData.getAlignment())
- SectData.setAlignment(ByteAlignment);
+ if (ByteAlignment > Section->getAlignment())
+ Section->setAlignment(ByteAlignment);
}
// This should always be called with the thread local bss section. Like the