LLVM API Documentation

llvm::MachOCodeEmitter Class Reference

#include <MachOCodeEmitter.h>

Inheritance diagram for llvm::MachOCodeEmitter:
[legend]
Collaboration diagram for llvm::MachOCodeEmitter:
[legend]

List of all members.

Public Member Functions

 MachOCodeEmitter (MachOWriter &mow, MachOSection &mos)
virtual void startFunction (MachineFunction &MF)
virtual bool finishFunction (MachineFunction &MF)
virtual void addRelocation (const MachineRelocation &MR)
void emitConstantPool (MachineConstantPool *MCP)
void emitJumpTables (MachineJumpTableInfo *MJTI)
virtual void emitLabel (uint64_t LabelID)
 emitLabel - Emits a label
virtual uintptr_t getLabelAddress (uint64_t Label) const
virtual void setModuleInfo (llvm::MachineModuleInfo *MMI)


Detailed Description

MachOCodeEmitter - This class is used by the MachOWriter to emit the code for functions to the Mach-O file.

Definition at line 23 of file MachOCodeEmitter.h.


Constructor & Destructor Documentation

llvm::MachOCodeEmitter::MachOCodeEmitter ( MachOWriter &  mow,
MachOSection &  mos 
)


Member Function Documentation

void llvm::MachOCodeEmitter::startFunction ( MachineFunction &  MF  )  [virtual]

bool llvm::MachOCodeEmitter::finishFunction ( MachineFunction &  MF  )  [virtual]

virtual void llvm::MachOCodeEmitter::addRelocation ( const MachineRelocation &  relocation  )  [inline, virtual]

addRelocation - Whenever a relocatable address is needed, it should be noted with this interface.

addRelocation - Whenever a relocatable address is needed, it should be noted with this interface.

Reimplemented from llvm::ObjectCodeEmitter.

Definition at line 47 of file MachOCodeEmitter.h.

void llvm::MachOCodeEmitter::emitConstantPool ( MachineConstantPool *  MCP  )  [virtual]

void llvm::MachOCodeEmitter::emitJumpTables ( MachineJumpTableInfo *  MJTI  )  [virtual]

virtual void llvm::MachOCodeEmitter::emitLabel ( uint64_t  LabelID  )  [inline, virtual]

emitLabel - Emits a label

Implements llvm::ObjectCodeEmitter.

Definition at line 54 of file MachOCodeEmitter.h.

References llvm::ObjectCodeEmitter::getCurrentPCOffset().

virtual uintptr_t llvm::MachOCodeEmitter::getLabelAddress ( uint64_t  LabelID  )  const [inline, virtual]

getLabelAddress - Return the address of the specified LabelID, only usable after the LabelID has been emitted.

Implements llvm::ObjectCodeEmitter.

Definition at line 58 of file MachOCodeEmitter.h.

virtual void llvm::MachOCodeEmitter::setModuleInfo ( llvm::MachineModuleInfo *  Info  )  [inline, virtual]

Specifies the MachineModuleInfo object. This is used for exception handling purposes.

Implements llvm::ObjectCodeEmitter.

Definition at line 62 of file MachOCodeEmitter.h.


The documentation for this class was generated from the following files: