Added GetTargetRelocation method.
[oota-llvm.git] / include / llvm / Target / TargetMachOWriterInfo.h
index d85b7275f985aa4cf1dd68ecc0194b836f4532ec..24fcb79776c3b4a964d487811606bc7e7f32734f 100644 (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; }
   };