class WasmException

Declaration

class WasmException : public EHStreamer { /* full declaration omitted */ };

Description

Emits exception handling directives.

Declared at: llvm/lib/CodeGen/AsmPrinter/WasmException.h:25

Inherits from: EHStreamer

Member Variables

Inherited from EHStreamer:

protected Asm
protected MMI

Method Overview

  • public WasmException(llvm::AsmPrinter * A)
  • public void beginFunction(const llvm::MachineFunction * MF)
  • protected void computeCallSiteTable(SmallVectorImpl<llvm::EHStreamer::CallSiteEntry> & CallSites, SmallVectorImpl<llvm::EHStreamer::CallSiteRange> & CallSiteRanges, const SmallVectorImpl<const llvm::LandingPadInfo *> & LandingPads, const SmallVectorImpl<unsigned int> & FirstActions)
  • public void endFunction(const llvm::MachineFunction * MF)
  • public void endModule()
  • public void markFunctionEnd()

Inherited from EHStreamer:

Inherited from AsmPrinterHandler:

Methods

WasmException(llvm::AsmPrinter* A)

Declared at: llvm/lib/CodeGen/AsmPrinter/WasmException.h:27

Parameters

llvm::AsmPrinter* A

void beginFunction(
    const llvm::MachineFunction* MF)

Description

Gather pre-function debug information. Every beginFunction(MF) call should be followed by an endFunction(MF) call.

Declared at: llvm/lib/CodeGen/AsmPrinter/WasmException.h:30

Parameters

const llvm::MachineFunction* MF

void computeCallSiteTable(
    SmallVectorImpl<
        llvm::EHStreamer::CallSiteEntry>&
        CallSites,
    SmallVectorImpl<
        llvm::EHStreamer::CallSiteRange>&
        CallSiteRanges,
    const SmallVectorImpl<
        const llvm::LandingPadInfo*>& LandingPads,
    const SmallVectorImpl<unsigned int>&
        FirstActions)

Description

Compute the call-site table and the call-site ranges. The entry for an invoke has a try-range containing the call, a non-zero landing pad and an appropriate action. The entry for an ordinary call has a try-range containing the call and zero for the landing pad and the action. Calls marked 'nounwind' have no entry and must not be contained in the try-range of any entry - they form gaps in the table. Entries must be ordered by try-range address. CallSiteRanges vector is only populated for Itanium exception handling.

Declared at: llvm/lib/CodeGen/AsmPrinter/WasmException.h:36

Parameters

SmallVectorImpl<llvm::EHStreamer::CallSiteEntry>& CallSites
SmallVectorImpl<llvm::EHStreamer::CallSiteRange>& CallSiteRanges
const SmallVectorImpl< const llvm::LandingPadInfo*>& LandingPads
const SmallVectorImpl<unsigned int>& FirstActions

void endFunction(const llvm::MachineFunction* MF)

Description

Gather post-function debug information. Please note that some AsmPrinter implementations may not call beginFunction at all.

Declared at: llvm/lib/CodeGen/AsmPrinter/WasmException.h:32

Parameters

const llvm::MachineFunction* MF

void endModule()

Description

Emit all sections that should come after the content.

Declared at: llvm/lib/CodeGen/AsmPrinter/WasmException.h:29

void markFunctionEnd()

Declared at: llvm/lib/CodeGen/AsmPrinter/WasmException.h:31