LLVM API Documentation
#include <X86ELFWriterInfo.h>
Public Member Functions | |
| X86ELFWriterInfo (TargetMachine &TM) | |
| virtual | ~X86ELFWriterInfo () |
| virtual unsigned | getRelocationType (unsigned MachineRelTy) const |
| virtual bool | hasRelocationAddend () const |
| virtual long int | getDefaultAddendForRelTy (unsigned RelTy, long int Modifier=0) const |
| virtual unsigned | getRelocationTySize (unsigned RelTy) const |
| getRelTySize - Returns the size of relocatable field in bits | |
| virtual bool | isPCRelativeRel (unsigned RelTy) const |
| isPCRelativeRel - True if the relocation type is pc relative | |
| virtual unsigned | getAbsoluteLabelMachineRelTy () const |
| virtual long int | computeRelocation (unsigned SymOffset, unsigned RelOffset, unsigned RelTy) const |
Definition at line 21 of file X86ELFWriterInfo.h.
| X86ELFWriterInfo::X86ELFWriterInfo | ( | TargetMachine & | TM | ) |
| X86ELFWriterInfo::~X86ELFWriterInfo | ( | ) | [virtual] |
Definition at line 33 of file X86ELFWriterInfo.cpp.
getRelocationType - Returns the target specific ELF Relocation type. 'MachineRelTy' contains the object code independent relocation type
Implements llvm::TargetELFWriterInfo.
Definition at line 35 of file X86ELFWriterInfo.cpp.
References llvm::TargetELFWriterInfo::is64Bit, llvm_unreachable, llvm::X86::reloc_absolute_dword, llvm::X86::reloc_absolute_word, llvm::X86::reloc_absolute_word_sext, llvm::X86::reloc_pcrel_word, and llvm::X86::reloc_picrel_word.
| virtual bool llvm::X86ELFWriterInfo::hasRelocationAddend | ( | ) | const [inline, virtual] |
hasRelocationAddend - True if the target uses an addend in the ELF relocation entry.
Implements llvm::TargetELFWriterInfo.
Definition at line 50 of file X86ELFWriterInfo.h.
References llvm::TargetELFWriterInfo::is64Bit.
| long int X86ELFWriterInfo::getDefaultAddendForRelTy | ( | unsigned | RelTy, | |
| long int | Modifier = 0 | |||
| ) | const [virtual] |
getDefaultAddendForRelTy - Gets the default addend value for a relocation entry based on the target ELF relocation type.
Implements llvm::TargetELFWriterInfo.
Definition at line 66 of file X86ELFWriterInfo.cpp.
References llvm::TargetELFWriterInfo::is64Bit, and llvm_unreachable.
getRelTySize - Returns the size of relocatable field in bits
Implements llvm::TargetELFWriterInfo.
Definition at line 89 of file X86ELFWriterInfo.cpp.
References llvm::TargetELFWriterInfo::is64Bit, and llvm_unreachable.
isPCRelativeRel - True if the relocation type is pc relative
Implements llvm::TargetELFWriterInfo.
Definition at line 113 of file X86ELFWriterInfo.cpp.
References llvm::TargetELFWriterInfo::is64Bit, and llvm_unreachable.
| unsigned X86ELFWriterInfo::getAbsoluteLabelMachineRelTy | ( | ) | const [virtual] |
getJumpTableRelocationTy - Returns the machine relocation type used to reference a jumptable.
Implements llvm::TargetELFWriterInfo.
Definition at line 138 of file X86ELFWriterInfo.cpp.
References llvm::TargetELFWriterInfo::is64Bit, llvm::X86::reloc_absolute_dword, and llvm::X86::reloc_absolute_word.
| long int X86ELFWriterInfo::computeRelocation | ( | unsigned | SymOffset, | |
| unsigned | RelOffset, | |||
| unsigned | RelTy | |||
| ) | const [virtual] |
computeRelocation - Some relocatable fields could be relocated directly, avoiding the relocation symbol emission, compute the final relocation value for this symbol.
Implements llvm::TargetELFWriterInfo.
Definition at line 143 of file X86ELFWriterInfo.cpp.