From ee548275c63a1eeffda9d3edd2bea04e1dadcc67 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Thu, 29 Nov 2012 18:14:24 +0000 Subject: Add options to AddressSanitizer passes to make them configurable by frontend. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168910 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Transforms/Instrumentation.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/llvm/Transforms/Instrumentation.h') diff --git a/include/llvm/Transforms/Instrumentation.h b/include/llvm/Transforms/Instrumentation.h index 57b6ab3d30..c84ecb6a23 100644 --- a/include/llvm/Transforms/Instrumentation.h +++ b/include/llvm/Transforms/Instrumentation.h @@ -34,8 +34,10 @@ ModulePass *createGCOVProfilerPass(bool EmitNotes = true, bool EmitData = true, bool UseExtraChecksum = false); // Insert AddressSanitizer (address sanity checking) instrumentation -FunctionPass *createAddressSanitizerFunctionPass(); -ModulePass *createAddressSanitizerModulePass(); +FunctionPass *createAddressSanitizerFunctionPass( + bool CheckInitOrder = false, bool CheckUseAfterReturn = false, + bool CheckLifetime = false); +ModulePass *createAddressSanitizerModulePass(bool CheckInitOrder = false); // Insert MemorySanitizer instrumentation (detection of uninitialized reads) FunctionPass *createMemorySanitizerPass(); // Insert ThreadSanitizer (race detection) instrumentation -- cgit v1.2.3-18-g5258