1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Added GetTargetRelocation method.

llvm-svn: 33815
This commit is contained in:
Bill Wendling 2007-02-03 02:38:57 +00:00
parent d2623ac830
commit e60f8624f5

View File

@ -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; }
};