mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-09 03:56:28 +00:00
Move getPointerSize() to the base class since it's not dependent on MachO
vs. ELF git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115180 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4b1da2b618
commit
3787a40e03
@ -36,6 +36,10 @@ public:
|
|||||||
void RelaxInstruction(const MCInst &Inst, MCInst &Res) const;
|
void RelaxInstruction(const MCInst &Inst, MCInst &Res) const;
|
||||||
|
|
||||||
bool WriteNopData(uint64_t Count, MCObjectWriter *OW) const;
|
bool WriteNopData(uint64_t Count, MCObjectWriter *OW) const;
|
||||||
|
|
||||||
|
unsigned getPointerSize() const {
|
||||||
|
return 4;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
bool ARMAsmBackend::MayNeedRelaxation(const MCInst &Inst) const {
|
bool ARMAsmBackend::MayNeedRelaxation(const MCInst &Inst) const {
|
||||||
@ -84,10 +88,6 @@ public:
|
|||||||
/*IsLittleEndian=*/true,
|
/*IsLittleEndian=*/true,
|
||||||
/*HasRelocationAddend=*/false);
|
/*HasRelocationAddend=*/false);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned getPointerSize() const {
|
|
||||||
return 4;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Fixme: can we raise this to share code between Darwin and ELF?
|
// Fixme: can we raise this to share code between Darwin and ELF?
|
||||||
@ -120,10 +120,6 @@ public:
|
|||||||
return new MachObjectWriter(OS, /*Is64Bit=*/false);
|
return new MachObjectWriter(OS, /*Is64Bit=*/false);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned getPointerSize() const {
|
|
||||||
return 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
virtual bool doesSectionRequireSymbols(const MCSection &Section) const {
|
virtual bool doesSectionRequireSymbols(const MCSection &Section) const {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user