LLVM  10.0.0svn
Public Member Functions | List of all members
llvm::ModuleAddressSanitizerPass Class Reference

Public interface to the address sanitizer module pass for instrumenting code to check for various memory errors. More...

#include "llvm/Transforms/Instrumentation/AddressSanitizer.h"

Inheritance diagram for llvm::ModuleAddressSanitizerPass:
Inheritance graph
[legend]
Collaboration diagram for llvm::ModuleAddressSanitizerPass:
Collaboration graph
[legend]

Public Member Functions

 ModuleAddressSanitizerPass (bool CompileKernel=false, bool Recover=false, bool UseGlobalGC=true, bool UseOdrIndicator=false)
 
PreservedAnalyses run (Module &M, ModuleAnalysisManager &AM)
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::PassInfoMixin< ModuleAddressSanitizerPass >
static StringRef name ()
 Gets the name of the pass we are mixed into. More...
 

Detailed Description

Public interface to the address sanitizer module pass for instrumenting code to check for various memory errors.

This adds 'asan.module_ctor' to 'llvm.global_ctors'. This pass may also run intependently of the function address sanitizer.

Definition at line 117 of file AddressSanitizer.h.

Constructor & Destructor Documentation

◆ ModuleAddressSanitizerPass()

ModuleAddressSanitizerPass::ModuleAddressSanitizerPass ( bool  CompileKernel = false,
bool  Recover = false,
bool  UseGlobalGC = true,
bool  UseOdrIndicator = false 
)
explicit

Definition at line 1186 of file AddressSanitizer.cpp.

Member Function Documentation

◆ run()

PreservedAnalyses ModuleAddressSanitizerPass::run ( Module M,
ModuleAnalysisManager AM 
)

The documentation for this class was generated from the following files: