LLVM API Documentation
#include <ELFWriter.h>
Inheritance diagram for llvm::ELFWriter:


Public Types | |
| typedef std::vector< unsigned char > | DataBuffer |
Public Member Functions | |
| MachineCodeEmitter & | getMachineCodeEmitter () const |
| ELFWriter (raw_ostream &O, TargetMachine &TM) | |
| ~ELFWriter () | |
Static Public Attributes | |
| char | ID = 0 |
Protected Member Functions | |
| bool | doInitialization (Module &M) |
| bool | runOnMachineFunction (MachineFunction &MF) |
| bool | doFinalization (Module &M) |
Protected Attributes | |
| raw_ostream & | O |
| TargetMachine & | TM |
| Mangler * | Mang |
| ELFCodeEmitter * | MCE |
| unsigned short | e_machine |
| unsigned | e_flags |
| bool | is64Bit |
| bool | isLittleEndian |
Friends | |
| class | ELFCodeEmitter |
Definition at line 32 of file ELFWriter.h.
|
|
Definition at line 44 of file ELFWriter.h. |
|
||||||||||||
|
Definition at line 197 of file ELFWriter.cpp. References e_flags, ELFCodeEmitter, llvm::TargetData::getPointerSizeInBits(), llvm::TargetMachine::getTargetData(), is64Bit, llvm::TargetData::isLittleEndian(), isLittleEndian, MCE, and TM. |
|
|
Definition at line 209 of file ELFWriter.cpp. |
|
|
doFinalization - Now that the module has been completely processed, emit the ELF file to 'O'. Reimplemented from llvm::FunctionPass. Definition at line 353 of file ELFWriter.cpp. References Module::global_begin(), Module::global_end(), and Mang. |
|
|
doInitialization - Emit the file header and all of the global variables for the module to the ELF file. Reimplemented from llvm::FunctionPass. Definition at line 215 of file ELFWriter.cpp. References e_flags, llvm::TargetMachine::getELFWriterInfo(), llvm::TargetELFWriterInfo::getEMachine(), is64Bit, isLittleEndian, Mang, llvm::OutputBuffer::outaddr(), llvm::OutputBuffer::outbyte(), llvm::OutputBuffer::outhalf(), llvm::OutputBuffer::outword(), and TM. |
|
|
Definition at line 37 of file ELFWriter.h. Referenced by llvm::AddELFWriter(). |
|
|
runOnMachineFunction - This method must be overloaded to perform the desired machine code transformation or analysis. Implements llvm::MachineFunctionPass. Definition at line 346 of file ELFWriter.cpp. |
|
|
Definition at line 33 of file ELFWriter.h. Referenced by ELFWriter(). |
|
|
Definition at line 72 of file ELFWriter.h. Referenced by doInitialization(), and ELFWriter(). |
|
|
Definition at line 69 of file ELFWriter.h. |
|
|
Definition at line 51 of file ELFWriter.cpp. |
|
|
is64Bit/isLittleEndian - This information is inferred from the target machine directly, indicating whether to emit a 32- or 64-bit ELF file. Definition at line 80 of file ELFWriter.h. Referenced by doInitialization(), and ELFWriter(). |
|
|
is64Bit/isLittleEndian - This information is inferred from the target machine directly, indicating whether to emit a 32- or 64-bit ELF file. Definition at line 80 of file ELFWriter.h. Referenced by doInitialization(), and ELFWriter(). |
|
|
Mang - The object used to perform name mangling for this module. Definition at line 57 of file ELFWriter.h. Referenced by doFinalization(), and doInitialization(). |
|
|
MCE - The MachineCodeEmitter object that we are exposing to emit machine code for functions to the .o file. Definition at line 61 of file ELFWriter.h. Referenced by ELFWriter(). |
|
|
Output stream to send the resultant object file to. Definition at line 49 of file ELFWriter.h. |
|
|
Target machine description. Definition at line 53 of file ELFWriter.h. Referenced by doInitialization(), and ELFWriter(). |