Creates sanitizer constructor function, and calls sanitizer's init function from it.
Declared in <llvm/Transforms/Utils/ModuleUtils.h>
std::pair<Function*, FunctionCallee>
createSanitizerCtorAndInitFunctions(
Module& M,
StringRef CtorName,
StringRef InitName,
ArrayRef<Type*> InitArgTypes,
ArrayRef<Value*> InitArgs,
StringRef VersionCheckName = StringRef(),
bool Weak = false);
Returns pair of pointers to constructor, and init functions respectively.
| Name | Description |
|---|---|
| M | Module in which to create the constructor and init functions. |
| CtorName | Name of the constructor function to create. |
| InitName | Name of the sanitizer init function to call. |
| InitArgTypes | Argument types of the init function. |
| InitArgs | Argument values passed to the init function. |
| VersionCheckName | Optional name of a version-check function to call. |
| Weak | If true, declare the init function as a weak external symbol. |