LLVM API Documentation
#include <PPCMachOWriterInfo.h>
Public Types | |
| enum | { PPC_RELOC_VANILLA, PPC_RELOC_PAIR, PPC_RELOC_BR14, PPC_RELOC_BR24, PPC_RELOC_HI16, PPC_RELOC_LO16, PPC_RELOC_HA16, PPC_RELOC_LO14 } |
Public Member Functions | |
| PPCMachOWriterInfo (const PPCTargetMachine &TM) | |
| virtual | ~PPCMachOWriterInfo () |
| virtual unsigned | GetTargetRelocation (MachineRelocation &MR, unsigned FromIdx, unsigned ToAddr, unsigned ToIdx, OutputBuffer &RelocOut, OutputBuffer &SecOut, bool Scattered, bool Extern) const |
Definition at line 26 of file PPCMachOWriterInfo.h.
| anonymous enum |
| PPC_RELOC_VANILLA | |
| PPC_RELOC_PAIR | |
| PPC_RELOC_BR14 | |
| PPC_RELOC_BR24 | |
| PPC_RELOC_HI16 | |
| PPC_RELOC_LO16 | |
| PPC_RELOC_HA16 | |
| PPC_RELOC_LO14 |
Definition at line 41 of file PPCMachOWriterInfo.h.
| PPCMachOWriterInfo::PPCMachOWriterInfo | ( | const PPCTargetMachine & | TM | ) |
Definition at line 22 of file PPCMachOWriterInfo.cpp.
| PPCMachOWriterInfo::~PPCMachOWriterInfo | ( | ) | [virtual] |
Definition at line 27 of file PPCMachOWriterInfo.cpp.
| unsigned PPCMachOWriterInfo::GetTargetRelocation | ( | MachineRelocation & | MR, | |
| unsigned | FromIdx, | |||
| unsigned | ToAddr, | |||
| unsigned | ToIdx, | |||
| OutputBuffer & | RelocOut, | |||
| OutputBuffer & | SecOut, | |||
| bool | Scattered, | |||
| bool | isExtern | |||
| ) | const [virtual] |
GetTargetRelocation - For the MachineRelocation MR, convert it to one or more PowerPC MachORelocation(s), add the new relocations to the MachOSection, and rewrite the instruction at the section offset if required by that relocation type.
Reimplemented from llvm::TargetMachOWriterInfo.
Definition at line 33 of file PPCMachOWriterInfo.cpp.
References llvm::OutputBuffer::fixhalf(), llvm::OutputBuffer::fixword(), llvm::MachineRelocation::getConstantVal(), llvm::MachineRelocation::getMachineCodeOffset(), llvm::MachineRelocation::getRelocationType(), llvm::MachineRelocation::getResultPointer(), llvm::OutputBuffer::outword(), PPC_RELOC_BR24, PPC_RELOC_HA16, PPC_RELOC_LO16, PPC_RELOC_PAIR, PPC_RELOC_VANILLA, llvm::PPC::reloc_absolute_high, llvm::PPC::reloc_absolute_low, llvm::PPC::reloc_absolute_low_ix, llvm::PPC::reloc_pcrel_bcx, llvm::PPC::reloc_pcrel_bx, and llvm::PPC::reloc_vanilla.