LLVM  4.0.0
Public Member Functions | List of all members
llvm::AsmPrinterHandler Class Referenceabstract

Collects and handles AsmPrinter objects required to build debug or EH information. More...

#include <AsmPrinterHandler.h>

Inheritance diagram for llvm::AsmPrinterHandler:
[legend]

Public Member Functions

virtual ~AsmPrinterHandler ()
 Pin vtable to this file. More...
 
virtual void setSymbolSize (const MCSymbol *Sym, uint64_t Size)=0
 For symbols that have a size designated (e.g. More...
 
virtual void endModule ()=0
 Emit all sections that should come after the content. More...
 
virtual void beginFunction (const MachineFunction *MF)=0
 Gather pre-function debug information. More...
 
virtual void markFunctionEnd ()
 
virtual void endFunction (const MachineFunction *MF)=0
 Gather post-function debug information. More...
 
virtual void beginFragment (const MachineBasicBlock *MBB, ExceptionSymbolProvider ESP)
 
virtual void endFragment ()
 
virtual void beginFunclet (const MachineBasicBlock &MBB, MCSymbol *Sym=nullptr)
 Emit target-specific EH funclet machinery. More...
 
virtual void endFunclet ()
 
virtual void beginInstruction (const MachineInstr *MI)=0
 Process beginning of an instruction. More...
 
virtual void endInstruction ()=0
 Process end of an instruction. More...
 

Detailed Description

Collects and handles AsmPrinter objects required to build debug or EH information.

Definition at line 32 of file AsmPrinterHandler.h.

Constructor & Destructor Documentation

AsmPrinterHandler::~AsmPrinterHandler ( )
virtual

Pin vtable to this file.

Definition at line 2642 of file AsmPrinter.cpp.

Member Function Documentation

virtual void llvm::AsmPrinterHandler::beginFragment ( const MachineBasicBlock MBB,
ExceptionSymbolProvider  ESP 
)
inlinevirtual

Reimplemented in llvm::DwarfCFIException.

Definition at line 57 of file AsmPrinterHandler.h.

virtual void llvm::AsmPrinterHandler::beginFunclet ( const MachineBasicBlock MBB,
MCSymbol Sym = nullptr 
)
inlinevirtual

Emit target-specific EH funclet machinery.

Reimplemented in llvm::WinException.

Definition at line 62 of file AsmPrinterHandler.h.

virtual void llvm::AsmPrinterHandler::beginFunction ( const MachineFunction MF)
pure virtual

Gather pre-function debug information.

Every beginFunction(MF) call should be followed by an endFunction(MF) call.

Implemented in llvm::DwarfDebug, llvm::CodeViewDebug, llvm::WinException, llvm::DebugHandlerBase, llvm::ARMException, and llvm::DwarfCFIException.

virtual void llvm::AsmPrinterHandler::beginInstruction ( const MachineInstr MI)
pure virtual

Process beginning of an instruction.

Implemented in llvm::DwarfDebug, llvm::CodeViewDebug, llvm::EHStreamer, and llvm::DebugHandlerBase.

virtual void llvm::AsmPrinterHandler::endFragment ( )
inlinevirtual

Reimplemented in llvm::DwarfCFIExceptionBase.

Definition at line 59 of file AsmPrinterHandler.h.

virtual void llvm::AsmPrinterHandler::endFunclet ( )
inlinevirtual

Reimplemented in llvm::WinException.

Definition at line 64 of file AsmPrinterHandler.h.

virtual void llvm::AsmPrinterHandler::endFunction ( const MachineFunction MF)
pure virtual

Gather post-function debug information.

Please note that some AsmPrinter implementations may not call beginFunction at all.

Implemented in llvm::DwarfDebug, llvm::CodeViewDebug, llvm::WinException, llvm::ARMException, llvm::DebugHandlerBase, and llvm::DwarfCFIException.

virtual void llvm::AsmPrinterHandler::endInstruction ( )
pure virtual

Process end of an instruction.

Implemented in llvm::EHStreamer, and llvm::DebugHandlerBase.

virtual void llvm::AsmPrinterHandler::endModule ( )
pure virtual

Emit all sections that should come after the content.

Implemented in llvm::DwarfDebug, llvm::CodeViewDebug, llvm::WinException, llvm::ARMException, and llvm::DwarfCFIException.

void AsmPrinterHandler::markFunctionEnd ( )
virtual

Reimplemented in llvm::DwarfCFIExceptionBase.

Definition at line 2644 of file AsmPrinter.cpp.

virtual void llvm::AsmPrinterHandler::setSymbolSize ( const MCSymbol Sym,
uint64_t  Size 
)
pure virtual

For symbols that have a size designated (e.g.

common symbols), this tracks that size.

Implemented in llvm::DwarfDebug, llvm::CodeViewDebug, and llvm::EHStreamer.


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