diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-07-18 23:24:01 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-07-18 23:24:01 +0000 |
commit | e2b0ecd8be031685a4fe63633235eceae7f1c4fa (patch) | |
tree | 87ba3192f419d41c3666b79b1ce53db24775976f /include/llvm/Target/TargetELFWriterInfo.h | |
parent | edcb540496ca798003d9fece8cf4e57d536afa38 (diff) | |
download | external_llvm-e2b0ecd8be031685a4fe63633235eceae7f1c4fa.zip external_llvm-e2b0ecd8be031685a4fe63633235eceae7f1c4fa.tar.gz external_llvm-e2b0ecd8be031685a4fe63633235eceae7f1c4fa.tar.bz2 |
Use R_X86_64_32S to handle Jump Table Index relocation entries. Hide TAI usage inside getSection* functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetELFWriterInfo.h')
-rw-r--r-- | include/llvm/Target/TargetELFWriterInfo.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetELFWriterInfo.h b/include/llvm/Target/TargetELFWriterInfo.h index 7eb5352..b583572 100644 --- a/include/llvm/Target/TargetELFWriterInfo.h +++ b/include/llvm/Target/TargetELFWriterInfo.h @@ -89,6 +89,14 @@ namespace llvm { : (hasRelocationAddend() ? 12 : 8); } + /// hasCustomJumpTableIndexRelTy - Returns true if the target has a + /// specific relocation type for a jump table index. + virtual bool hasCustomJumpTableIndexRelTy() const { return false; } + + /// getJumpTableIndexRelTy - Returns the target specific relocation type + /// for a jump table index. + virtual unsigned getJumpTableIndexRelTy() const { return 0; } + /// getRelocationType - Returns the target specific ELF Relocation type. /// 'MachineRelTy' contains the object code independent relocation type virtual unsigned getRelocationType(unsigned MachineRelTy) const = 0; |