|
LLVM
10.0.0
|
Public interface to the address sanitizer pass for instrumenting code to check for various memory errors at runtime. More...
#include "llvm/Transforms/Instrumentation/AddressSanitizer.h"
Public Member Functions | |
| AddressSanitizerPass (bool CompileKernel=false, bool Recover=false, bool UseAfterScope=false) | |
| PreservedAnalyses | run (Function &F, FunctionAnalysisManager &AM) |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::PassInfoMixin< AddressSanitizerPass > | |
| static StringRef | name () |
| Gets the name of the pass we are mixed into. More... | |
Public interface to the address sanitizer pass for instrumenting code to check for various memory errors at runtime.
The sanitizer itself is a function pass that works by inserting various calls to the ASan runtime library functions. The runtime library essentially replaces malloc() and free() with custom implementations that allow regions surrounding requested memory to be checked for invalid accesses.
Definition at line 99 of file AddressSanitizer.h.
|
explicit |
Definition at line 1163 of file AddressSanitizer.cpp.
| PreservedAnalyses AddressSanitizerPass::run | ( | Function & | F, |
| FunctionAnalysisManager & | AM | ||
| ) |
Definition at line 1168 of file AddressSanitizer.cpp.
References AddressSanitizer, llvm::PreservedAnalyses::all(), F(), llvm::GlobalValue::getParent(), llvm::AnalysisManager< IRUnitT, ExtraArgTs >::getResult(), llvm::PreservedAnalyses::none(), and llvm::report_fatal_error().
1.8.13