mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 23:48:56 +00:00
Added GetTargetRelocation method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33815 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
18e84b55a4
commit
3da9981e16
@ -19,6 +19,7 @@
|
||||
namespace llvm {
|
||||
|
||||
class MachineBasicBlock;
|
||||
class OutputBuffer;
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
// TargetMachOWriterInfo
|
||||
@ -88,11 +89,19 @@ namespace llvm {
|
||||
|
||||
TargetMachOWriterInfo(uint32_t cputype, uint32_t cpusubtype)
|
||||
: CPUType(cputype), CPUSubType(cpusubtype) {}
|
||||
virtual ~TargetMachOWriterInfo() {}
|
||||
virtual ~TargetMachOWriterInfo();
|
||||
|
||||
virtual MachineRelocation GetJTRelocation(unsigned Offset,
|
||||
MachineBasicBlock *MBB) const;
|
||||
|
||||
virtual unsigned GetTargetRelocation(MachineRelocation &MR,
|
||||
unsigned FromIdx,
|
||||
unsigned ToAddr,
|
||||
unsigned ToIdx,
|
||||
OutputBuffer &RelocOut,
|
||||
OutputBuffer &SecOut,
|
||||
bool Scattered) const { return 0; }
|
||||
|
||||
uint32_t getCPUType() const { return CPUType; }
|
||||
uint32_t getCPUSubType() const { return CPUSubType; }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user