mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Better fix for r98994, MachObjectWriterImpl wasn't intended to be virtual.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99031 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -192,8 +192,6 @@ public:
|
|||||||
: Writer(_Writer), OS(Writer->getStream()), Is64Bit(_Is64Bit) {
|
: Writer(_Writer), OS(Writer->getStream()), Is64Bit(_Is64Bit) {
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ~MachObjectWriterImpl() {}
|
|
||||||
|
|
||||||
void Write8(uint8_t Value) { Writer->Write8(Value); }
|
void Write8(uint8_t Value) { Writer->Write8(Value); }
|
||||||
void Write16(uint16_t Value) { Writer->Write16(Value); }
|
void Write16(uint16_t Value) { Writer->Write16(Value); }
|
||||||
void Write32(uint32_t Value) { Writer->Write32(Value); }
|
void Write32(uint32_t Value) { Writer->Write32(Value); }
|
||||||
@@ -685,8 +683,7 @@ public:
|
|||||||
Relocations[Fragment.getParent()].push_back(MRE);
|
Relocations[Fragment.getParent()].push_back(MRE);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void RecordRelocation(const MCAssembler &Asm,
|
void RecordRelocation(const MCAssembler &Asm, const MCDataFragment &Fragment,
|
||||||
const MCDataFragment &Fragment,
|
|
||||||
const MCAsmFixup &Fixup, MCValue Target,
|
const MCAsmFixup &Fixup, MCValue Target,
|
||||||
uint64_t &FixedValue) {
|
uint64_t &FixedValue) {
|
||||||
if (Is64Bit) {
|
if (Is64Bit) {
|
||||||
@@ -914,7 +911,7 @@ public:
|
|||||||
StringTable += '\x00';
|
StringTable += '\x00';
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void ExecutePostLayoutBinding(MCAssembler &Asm) {
|
void ExecutePostLayoutBinding(MCAssembler &Asm) {
|
||||||
// Create symbol data for any indirect symbols.
|
// Create symbol data for any indirect symbols.
|
||||||
BindIndirectSymbols(Asm);
|
BindIndirectSymbols(Asm);
|
||||||
|
|
||||||
@@ -923,7 +920,7 @@ public:
|
|||||||
UndefinedSymbolData);
|
UndefinedSymbolData);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void WriteObject(const MCAssembler &Asm) {
|
void WriteObject(const MCAssembler &Asm) {
|
||||||
unsigned NumSections = Asm.size();
|
unsigned NumSections = Asm.size();
|
||||||
|
|
||||||
// The section data starts after the header, the segment load command (and
|
// The section data starts after the header, the segment load command (and
|
||||||
|
Reference in New Issue
Block a user