llvm.org GIT mirror llvm / b4ba5e6
[ASan] emit instrumentation for initialization order checking by default git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177063 91177308-0d34-0410-b5e6-96231b3b80d8 Alexey Samsonov 6 years ago
3 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
5959
6060 // Insert AddressSanitizer (address sanity checking) instrumentation
6161 FunctionPass *createAddressSanitizerFunctionPass(
62 bool CheckInitOrder = false, bool CheckUseAfterReturn = false,
62 bool CheckInitOrder = true, bool CheckUseAfterReturn = false,
6363 bool CheckLifetime = false, StringRef BlacklistFile = StringRef(),
6464 bool ZeroBaseShadow = false);
6565 ModulePass *createAddressSanitizerModulePass(
66 bool CheckInitOrder = false, StringRef BlacklistFile = StringRef(),
66 bool CheckInitOrder = true, StringRef BlacklistFile = StringRef(),
6767 bool ZeroBaseShadow = false);
6868
6969 // Insert MemorySanitizer instrumentation (detection of uninitialized reads)
243243
244244 /// AddressSanitizer: instrument the code in module to find memory bugs.
245245 struct AddressSanitizer : public FunctionPass {
246 AddressSanitizer(bool CheckInitOrder = false,
246 AddressSanitizer(bool CheckInitOrder = true,
247247 bool CheckUseAfterReturn = false,
248248 bool CheckLifetime = false,
249249 StringRef BlacklistFile = StringRef(),
314314
315315 class AddressSanitizerModule : public ModulePass {
316316 public:
317 AddressSanitizerModule(bool CheckInitOrder = false,
317 AddressSanitizerModule(bool CheckInitOrder = true,
318318 StringRef BlacklistFile = StringRef(),
319319 bool ZeroBaseShadow = false)
320320 : ModulePass(ID),
None ; RUN: opt < %s -asan -asan-module -asan-initialization-order -S | FileCheck %s
0 ; RUN: opt < %s -asan -asan-module -S | FileCheck %s
11 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
22 target triple = "x86_64-unknown-linux-gnu"
33 @xxx = internal global i32 0, align 4 ; With dynamic initializer.