llvm::calculateWinCXXEHStateNumbers

Build WinEHFuncInfo state numbers and tables for __CxxFrameHandler3.

Synopsis

Declared in <llvm/CodeGen/WinEHFuncInfo.h>

void
calculateWinCXXEHStateNumbers(
    Function const* ParentFn,
    WinEHFuncInfo& FuncInfo);

Description

Analyze the IR in ParentFn and its handlers to build WinEHFuncInfo, which describes the state numbers and tables used by __CxxFrameHandler3. This analysis assumes that WinEHPrepare has already been run.

Parameters

NameDescription
ParentFnParent function whose EH IR is analyzed.
FuncInfoStructure populated with C++ EH state information.