llvm::setKCFIType

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

NameDescription
MModule containing F.
FFunction whose KCFI type is set.
MangledTypeMangled KCFI type string to attach.