mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-09 22:24:37 +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:
@ -1347,7 +1347,7 @@ void ELFObjectWriter::WriteObject(MCAssembler &Asm,
|
||||
for (const MCSectionData &SD : Asm) {
|
||||
MCSectionELF &Section = static_cast<MCSectionELF &>(SD.getSection());
|
||||
|
||||
uint64_t Padding = OffsetToAlignment(OS.tell(), SD.getAlignment());
|
||||
uint64_t Padding = OffsetToAlignment(OS.tell(), Section.getAlignment());
|
||||
WriteZeros(Padding);
|
||||
|
||||
// Remember the offset into the file for this section.
|
||||
|
Reference in New Issue
Block a user