diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2015-01-07 00:38:00 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2015-01-07 00:38:00 +0000 |
commit | 8bb699b511904af2acc7188db146f29da94022da (patch) | |
tree | 8d6072816a80284eb43e5499cd10f23afa604fcf /lib/ubsan/ubsan_flags.h | |
parent | df867df2d3da7451984333ebcb6b4040dbcda164 (diff) |
[Sanitizer] Change the runtime flag representation.
This mirrors r225239 to all the rest sanitizers:
ASan, DFSan, LSan, MSan, TSan, UBSan.
Now the runtime flag type, name, default value and
description is located in the single place in the
.inc file.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225327 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ubsan/ubsan_flags.h')
-rw-r--r-- | lib/ubsan/ubsan_flags.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/ubsan/ubsan_flags.h b/lib/ubsan/ubsan_flags.h index c496469f5..44c287e3d 100644 --- a/lib/ubsan/ubsan_flags.h +++ b/lib/ubsan/ubsan_flags.h @@ -18,8 +18,12 @@ namespace __ubsan { struct Flags { - bool halt_on_error; - bool print_stacktrace; +#define UBSAN_FLAG(Type, Name, DefaultValue, Description) Type Name; +#include "ubsan_flags.inc" +#undef UBSAN_FLAG + + void SetDefaults(); + void ParseFromString(const char *str); }; extern Flags ubsan_flags; |