class WinCFGuard

Declaration

class WinCFGuard : public AsmPrinterHandler { /* full declaration omitted */ };

Description

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

Declared at: llvm/lib/CodeGen/AsmPrinter/WinCFGuard.h:23

Inherits from: AsmPrinterHandler

Member Variables

private llvm::AsmPrinter* Asm
Target of directive emission.
private std::vector<const MCSymbol*> LongjmpTargets

Method Overview

Inherited from AsmPrinterHandler:

Methods

WinCFGuard(llvm::AsmPrinter* A)

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

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/WinCFGuard.h:41

Parameters

const llvm::MachineFunction* MF

void beginInstruction(
    const llvm::MachineInstr* MI)

Description

Process beginning of an instruction.

Declared at: llvm/lib/CodeGen/AsmPrinter/WinCFGuard.h:49

Parameters

const llvm::MachineInstr* MI

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/WinCFGuard.h:46

Parameters

const llvm::MachineFunction* MF

void endInstruction()

Description

Process end of an instruction.

Declared at: llvm/lib/CodeGen/AsmPrinter/WinCFGuard.h:52

void endModule()

Description

Emit the Control Flow Guard function ID table.

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

llvm::MCSymbol* lookupImpSymbol(
    const llvm::MCSymbol* Sym)

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

Parameters

const llvm::MCSymbol* Sym

void setSymbolSize(const llvm::MCSymbol* Sym,
                   uint64_t Size)

Description

For symbols that have a size designated (e.g. common symbols), this tracks that size.

Declared at: llvm/lib/CodeGen/AsmPrinter/WinCFGuard.h:33

Parameters

const llvm::MCSymbol* Sym
uint64_t Size

~WinCFGuard()

Description

Pin vtable to this file.

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