summaryrefslogtreecommitdiff
path: root/include
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
commit3da9981e167a1b8f6660d1dffbe033ba4f8dd218 (patch)
tree21b073643fe18b8fe41e437a3150d346a9f01046 /include
parent18e84b55a4164d7852e91668e55d22543a6b1ec2 (diff)
downloadllvm-3da9981e167a1b8f6660d1dffbe033ba4f8dd218.tar.gz
llvm-3da9981e167a1b8f6660d1dffbe033ba4f8dd218.tar.bz2
llvm-3da9981e167a1b8f6660d1dffbe033ba4f8dd218.tar.xz
Added GetTargetRelocation method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33815 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetMachOWriterInfo.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetMachOWriterInfo.h b/include/llvm/Target/TargetMachOWriterInfo.h
index d85b7275f9..24fcb79776 100644
--- a/include/llvm/Target/TargetMachOWriterInfo.h
+++ b/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; }
};