mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
MC: Drop support for alignment in ZeroFill fragment, we can just use
MCAlignFragments for this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103661 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -421,16 +421,7 @@ void MCAssembler::LayoutFragment(MCAsmLayout &Layout, MCFragment &F) {
|
||||
}
|
||||
|
||||
case MCFragment::FT_ZeroFill: {
|
||||
MCZeroFillFragment &ZFF = cast<MCZeroFillFragment>(F);
|
||||
|
||||
// Align the fragment offset; it is safe to adjust the offset freely since
|
||||
// this is only in virtual sections.
|
||||
//
|
||||
// FIXME: We shouldn't be doing this here.
|
||||
Address = RoundUpToAlignment(Address, ZFF.getAlignment());
|
||||
Layout.setFragmentOffset(&F, Address - StartAddress);
|
||||
|
||||
EffectiveSize = ZFF.getSize();
|
||||
EffectiveSize = cast<MCZeroFillFragment>(F).getSize();
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -498,6 +489,8 @@ static void WriteFragmentData(const MCAssembler &Asm, const MCAsmLayout &Layout,
|
||||
MCAlignFragment &AF = cast<MCAlignFragment>(F);
|
||||
uint64_t Count = FragmentSize / AF.getValueSize();
|
||||
|
||||
assert(AF.getValueSize() && "Invalid virtual align in concrete fragment!");
|
||||
|
||||
// FIXME: This error shouldn't actually occur (the front end should emit
|
||||
// multiple .align directives to enforce the semantics it wants), but is
|
||||
// severe enough that we want to report it. How to handle this?
|
||||
@ -912,7 +905,7 @@ void MCZeroFillFragment::dump() {
|
||||
OS << "<MCZeroFillFragment ";
|
||||
this->MCFragment::dump();
|
||||
OS << "\n ";
|
||||
OS << " Size:" << getSize() << " Alignment:" << getAlignment() << ">";
|
||||
OS << " Size:" << getSize() << ">";
|
||||
}
|
||||
|
||||
void MCSectionData::dump() {
|
||||
|
Reference in New Issue
Block a user