diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2012-12-11 12:27:27 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2012-12-11 12:27:27 +0000 |
commit | 78c56c3c407d2c92825c86e6af7a0230d6019a1c (patch) | |
tree | 808c7192ad93fb80b58a7b32ab855fa21961e31e /lib/msan/msan_flags.h | |
parent | 8416e2110049d4f53f790b2486c6f1add6729ea4 (diff) |
[msan] MemorySanitizer runtime.
Initial commit of the MemorySanitizer runtime library.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169858 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan/msan_flags.h')
-rw-r--r-- | lib/msan/msan_flags.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/msan/msan_flags.h b/lib/msan/msan_flags.h new file mode 100644 index 000000000..b07f5cd40 --- /dev/null +++ b/lib/msan/msan_flags.h @@ -0,0 +1,34 @@ +//===-- msan_allocator.cc --------------------------- ---------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file is a part of MemorySanitizer. +// +// MemorySanitizer allocator. +//===----------------------------------------------------------------------===// +#ifndef MSAN_FLAGS_H +#define MSAN_FLAGS_H + +namespace __msan { + +// Flags. +struct Flags { + int exit_code; + int num_callers; + int verbosity; + bool poison_heap_with_zeroes; // default: false + bool poison_stack_with_zeroes; // default: false + bool poison_in_malloc; // default: true + bool report_umrs; +}; + +Flags *flags(); + +} // namespace __msan + +#endif // MSAN_FLAGS_H |