mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
MC: Clean up naming in MCObjectWriter. NFC.
s/WriteObject/writeObject/ s/RecordRelocation/recordRelocation/ s/IsSymbolRefDifferenceFullyResolved/isSymbolRefDifferenceFullyResolved/ s/Write8/write8/ s/WriteLE16/writeLE16/ s/WriteLE32/writeLE32/ s/WriteLE64/writeLE64/ s/WriteBE16/writeBE16/ s/WriteBE32/writeBE32/ s/WriteBE64/writeBE64/ s/Write16/write16/ s/Write32/write32/ s/Write64/write64/ s/WriteZeroes/writeZeroes/ s/WriteBytes/writeBytes/ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239108 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -260,9 +260,9 @@ bool ARMAsmBackend::writeNopData(uint64_t Count, MCObjectWriter *OW) const {
|
||||
hasNOP() ? Thumb2_16bitNopEncoding : Thumb1_16bitNopEncoding;
|
||||
uint64_t NumNops = Count / 2;
|
||||
for (uint64_t i = 0; i != NumNops; ++i)
|
||||
OW->Write16(nopEncoding);
|
||||
OW->write16(nopEncoding);
|
||||
if (Count & 1)
|
||||
OW->Write8(0);
|
||||
OW->write8(0);
|
||||
return true;
|
||||
}
|
||||
// ARM mode
|
||||
@@ -270,21 +270,21 @@ bool ARMAsmBackend::writeNopData(uint64_t Count, MCObjectWriter *OW) const {
|
||||
hasNOP() ? ARMv6T2_NopEncoding : ARMv4_NopEncoding;
|
||||
uint64_t NumNops = Count / 4;
|
||||
for (uint64_t i = 0; i != NumNops; ++i)
|
||||
OW->Write32(nopEncoding);
|
||||
OW->write32(nopEncoding);
|
||||
// FIXME: should this function return false when unable to write exactly
|
||||
// 'Count' bytes with NOP encodings?
|
||||
switch (Count % 4) {
|
||||
default:
|
||||
break; // No leftover bytes to write
|
||||
case 1:
|
||||
OW->Write8(0);
|
||||
OW->write8(0);
|
||||
break;
|
||||
case 2:
|
||||
OW->Write16(0);
|
||||
OW->write16(0);
|
||||
break;
|
||||
case 3:
|
||||
OW->Write16(0);
|
||||
OW->Write8(0xa0);
|
||||
OW->write16(0);
|
||||
OW->write8(0xa0);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
ARMMachObjectWriter(bool Is64Bit, uint32_t CPUType, uint32_t CPUSubtype)
|
||||
: MCMachObjectTargetWriter(Is64Bit, CPUType, CPUSubtype) {}
|
||||
|
||||
void RecordRelocation(MachObjectWriter *Writer, MCAssembler &Asm,
|
||||
void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm,
|
||||
const MCAsmLayout &Layout, const MCFragment *Fragment,
|
||||
const MCFixup &Fixup, MCValue Target,
|
||||
uint64_t &FixedValue) override;
|
||||
@@ -338,7 +338,7 @@ bool ARMMachObjectWriter::requiresExternRelocation(MachObjectWriter *Writer,
|
||||
return false;
|
||||
}
|
||||
|
||||
void ARMMachObjectWriter::RecordRelocation(MachObjectWriter *Writer,
|
||||
void ARMMachObjectWriter::recordRelocation(MachObjectWriter *Writer,
|
||||
MCAssembler &Asm,
|
||||
const MCAsmLayout &Layout,
|
||||
const MCFragment *Fragment,
|
||||
|
||||
Reference in New Issue
Block a user