summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCELFStreamer.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/MCELFStreamer.cpp
parent6a902f9d036266abd7963ee60bcd1c2187110f80 (diff)
downloadbcm5719-llvm-967d6a691499368cbb942e178a2526f5c00ce879.tar.gz
bcm5719-llvm-967d6a691499368cbb942e178a2526f5c00ce879.zip
Stop forwarding (get|set)Aligment from MCSectionData to MCSection.
llvm-svn: 237956
Diffstat (limited to 'llvm/lib/MC/MCELFStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCELFStreamer.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/MC/MCELFStreamer.cpp b/llvm/lib/MC/MCELFStreamer.cpp
index 7b02f1a4528..e666b554236 100644
--- a/llvm/lib/MC/MCELFStreamer.cpp
+++ b/llvm/lib/MC/MCELFStreamer.cpp
@@ -135,10 +135,9 @@ void MCELFStreamer::EmitAssemblerFlag(MCAssemblerFlag Flag) {
// needs to be aligned to at least the bundle size.
static void setSectionAlignmentForBundling(
const MCAssembler &Assembler, MCSectionData *Section) {
- if (Assembler.isBundlingEnabled() && Section &&
- Section->hasInstructions() &&
- Section->getAlignment() < Assembler.getBundleAlignSize())
- Section->setAlignment(Assembler.getBundleAlignSize());
+ if (Assembler.isBundlingEnabled() && Section && Section->hasInstructions() &&
+ Section->getSection().getAlignment() < Assembler.getBundleAlignSize())
+ Section->getSection().setAlignment(Assembler.getBundleAlignSize());
}
void MCELFStreamer::ChangeSection(MCSection *Section,
@@ -642,8 +641,8 @@ void MCELFStreamer::Flush() {
Symbol.getData().setFragment(F);
// Update the maximum alignment of the section if necessary.
- if (ByteAlignment > SectData.getAlignment())
- SectData.setAlignment(ByteAlignment);
+ if (ByteAlignment > Section.getAlignment())
+ Section.setAlignment(ByteAlignment);
}
LocalCommons.clear();
OpenPOWER on IntegriCloud