diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-05-21 21:02:35 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-05-21 21:02:35 +0000 |
| commit | 967d6a691499368cbb942e178a2526f5c00ce879 (patch) | |
| tree | 3e3721f388e20721118b44c0af1cb29d50c734e1 /llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp | |
| parent | 6a902f9d036266abd7963ee60bcd1c2187110f80 (diff) | |
| download | bcm5719-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/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp')
| -rw-r--r-- | llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp index 0bb04c58520..f14160d2104 100644 --- a/llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp +++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp @@ -459,16 +459,16 @@ void MipsTargetELFStreamer::finish() { const MCObjectFileInfo &OFI = *MCA.getContext().getObjectFileInfo(); // .bss, .text and .data are always at least 16-byte aligned. - MCSectionData &TextSectionData = - MCA.getOrCreateSectionData(*OFI.getTextSection()); - MCSectionData &DataSectionData = - MCA.getOrCreateSectionData(*OFI.getDataSection()); - MCSectionData &BSSSectionData = - MCA.getOrCreateSectionData(*OFI.getBSSSection()); + MCSection &TextSection = *OFI.getTextSection(); + MCA.getOrCreateSectionData(TextSection); + MCSection &DataSection = *OFI.getDataSection(); + MCA.getOrCreateSectionData(DataSection); + MCSection &BSSSection = *OFI.getBSSSection(); + MCA.getOrCreateSectionData(BSSSection); - TextSectionData.setAlignment(std::max(16u, TextSectionData.getAlignment())); - DataSectionData.setAlignment(std::max(16u, DataSectionData.getAlignment())); - BSSSectionData.setAlignment(std::max(16u, BSSSectionData.getAlignment())); + TextSection.setAlignment(std::max(16u, TextSection.getAlignment())); + DataSection.setAlignment(std::max(16u, DataSection.getAlignment())); + BSSSection.setAlignment(std::max(16u, BSSSection.getAlignment())); uint64_t Features = STI.getFeatureBits(); @@ -570,8 +570,8 @@ void MipsTargetELFStreamer::emitDirectiveEnd(StringRef Name) { const MCSymbolRefExpr *ExprRef = MCSymbolRefExpr::Create(Name, MCSymbolRefExpr::VK_None, Context); - MCSectionData &SecData = MCA.getOrCreateSectionData(*Sec); - SecData.setAlignment(4); + MCA.getOrCreateSectionData(*Sec); + Sec->setAlignment(4); OS.PushSection(); @@ -788,8 +788,8 @@ void MipsTargetELFStreamer::emitMipsAbiFlags() { MCStreamer &OS = getStreamer(); MCSectionELF *Sec = Context.getELFSection( ".MIPS.abiflags", ELF::SHT_MIPS_ABIFLAGS, ELF::SHF_ALLOC, 24, ""); - MCSectionData &ABIShndxSD = MCA.getOrCreateSectionData(*Sec); - ABIShndxSD.setAlignment(8); + MCA.getOrCreateSectionData(*Sec); + Sec->setAlignment(8); OS.SwitchSection(Sec); OS << ABIFlagsSection; |

