summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-02-03 02:38:57 +0000
committerBill Wendling <isanbard@gmail.com>2007-02-03 02:38:57 +0000
commitf382ea30fd05c1acb755a9ab7de31053798bb38a (patch)
tree5bcc3080ace1f0797cdfd1f20b4b8fae06d6083e /llvm
parent0ceb8bb7703aa6d23040e2708691755571f13adf (diff)
downloadbcm5719-llvm-f382ea30fd05c1acb755a9ab7de31053798bb38a.tar.gz
bcm5719-llvm-f382ea30fd05c1acb755a9ab7de31053798bb38a.zip
Added GetTargetRelocation method.
llvm-svn: 33815
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Target/TargetMachOWriterInfo.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/include/llvm/Target/TargetMachOWriterInfo.h b/llvm/include/llvm/Target/TargetMachOWriterInfo.h
index d85b7275f98..24fcb79776c 100644
--- a/llvm/include/llvm/Target/TargetMachOWriterInfo.h
+++ b/llvm/include/llvm/Target/TargetMachOWriterInfo.h
@@ -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; }
};
OpenPOWER on IntegriCloud