llvm::declareSanitizerInitFunction

Declare a sanitizer initialization function in module M.

Synopsis

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

FunctionCallee
declareSanitizerInitFunction(
    Module& M,
    StringRef InitName,
    ArrayRef<Type*> InitArgTypes,
    bool Weak = false);

Return Value

Callee for the declared sanitizer init function.

Parameters

NameDescription
MModule in which to declare the init function.
InitNameName of the sanitizer init function.
InitArgTypesArgument types of the init function.
WeakIf true, declare the init function as a weak external symbol.