Sets the KCFI type for the function.

Synopsis

Declared in <llvm/Transforms/Utils/ModuleUtils.h>

void
setKCFIType(
    Module& M,
    Function& F,
    StringRef MangledType);

Description

Used for compiler‐generated functions that are indirectly called in instrumented code.

Parameters

Name

Description

M

Module containing F.

F

Function whose KCFI type is set.

MangledType

Mangled KCFI type string to attach.

Created with MrDocs