LLVM  6.0.0svn
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 "CodeGen/AsmPrinter/AsmPrinterHandler.h"

Inheritance diagram for llvm::AsmPrinterHandler:
Inheritance graph
[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::~AsmPrinterHandler ( )
virtualdefault

Pin vtable to this file.

Referenced by llvm::AsmPrinter::isBlockOnlyReachableByFallthrough().

Member Function Documentation

◆ beginFragment()

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

Reimplemented in llvm::DwarfCFIException.

Definition at line 57 of file AsmPrinterHandler.h.

◆ beginFunclet()

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.

◆ beginFunction()

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::DebugHandlerBase, llvm::WinException, llvm::ARMException, and llvm::DwarfCFIException.

◆ beginInstruction()

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.

Referenced by endFunclet().

◆ endFragment()

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

Reimplemented in llvm::DwarfCFIExceptionBase.

Definition at line 59 of file AsmPrinterHandler.h.

◆ endFunclet()

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

Reimplemented in llvm::WinException.

Definition at line 64 of file AsmPrinterHandler.h.

References beginInstruction(), endInstruction(), and MI.

◆ endFunction()

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::DebugHandlerBase, llvm::WinException, llvm::ARMException, and llvm::DwarfCFIException.

◆ endInstruction()

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

Process end of an instruction.

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

Referenced by endFunclet().

◆ endModule()

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.

◆ markFunctionEnd()

void AsmPrinterHandler::markFunctionEnd ( )
virtual

Reimplemented in llvm::DwarfCFIExceptionBase.

Definition at line 2821 of file AsmPrinter.cpp.

◆ setSymbolSize()

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: