mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-12-20 03:17:48 +00:00
Stop forwarding (get|set)Aligment from MCSectionData to MCSection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237956 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -31,7 +31,8 @@ void MipsRegInfoRecord::EmitMipsOptionRecord() {
|
||||
MCSectionELF *Sec =
|
||||
Context.getELFSection(".MIPS.options", ELF::SHT_MIPS_OPTIONS,
|
||||
ELF::SHF_ALLOC | ELF::SHF_MIPS_NOSTRIP, 1, "");
|
||||
MCA.getOrCreateSectionData(*Sec).setAlignment(8);
|
||||
MCA.getOrCreateSectionData(*Sec);
|
||||
Sec->setAlignment(8);
|
||||
Streamer->SwitchSection(Sec);
|
||||
|
||||
Streamer->EmitIntValue(ELF::ODK_REGINFO, 1); // kind
|
||||
@@ -48,8 +49,8 @@ void MipsRegInfoRecord::EmitMipsOptionRecord() {
|
||||
} else {
|
||||
MCSectionELF *Sec = Context.getELFSection(".reginfo", ELF::SHT_MIPS_REGINFO,
|
||||
ELF::SHF_ALLOC, 24, "");
|
||||
MCA.getOrCreateSectionData(*Sec)
|
||||
.setAlignment(MTS->getABI().IsN32() ? 8 : 4);
|
||||
MCA.getOrCreateSectionData(*Sec);
|
||||
Sec->setAlignment(MTS->getABI().IsN32() ? 8 : 4);
|
||||
Streamer->SwitchSection(Sec);
|
||||
|
||||
Streamer->EmitIntValue(ri_gprmask, 4);
|
||||
|
||||
Reference in New Issue
Block a user