diff options
Diffstat (limited to 'lib/Target/X86/X86ELFWriterInfo.h')
-rw-r--r-- | lib/Target/X86/X86ELFWriterInfo.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ELFWriterInfo.h b/lib/Target/X86/X86ELFWriterInfo.h index 7782a5b..e534e17 100644 --- a/lib/Target/X86/X86ELFWriterInfo.h +++ b/lib/Target/X86/X86ELFWriterInfo.h @@ -49,6 +49,16 @@ namespace llvm { /// ELF relocation entry. virtual bool hasRelocationAddend() const { return is64Bit ? true : false; } + /// hasCustomJumpTableIndexRelTy - Returns true if the target has a + /// specific relocation type for a jump table index. + virtual bool hasCustomJumpTableIndexRelTy() const { + return is64Bit ? true : false; + } + + /// getJumpTableIndexRelTy - Returns the target specific relocation type + /// for a jump table index. + virtual unsigned getJumpTableIndexRelTy() const { return R_X86_64_32S; } + /// getAddendForRelTy - Gets the addend value for an ELF relocation entry /// based on the target relocation type virtual long int getDefaultAddendForRelTy(unsigned RelTy) const; |