summaryrefslogtreecommitdiff
path: root/lib/tsan/dd
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2014-03-20 12:52:52 +0000
committerAlexander Potapenko <glider@google.com>2014-03-20 12:52:52 +0000
commit177ff3686224736fdedfb7c34716259adf595fb4 (patch)
tree77ec8c1777f0b1c73a361916fcdfc87fc8d88f80 /lib/tsan/dd
parentcd32e71d7db63332ef950499c1739c424ae5e789 (diff)
[libsanitizer] Introduce flag descriptions.
Extend ParseFlag to accept the |description| parameter, add dummy values for all existing flags. As the flags are parsed their descriptions are stored in a global linked list. The tool can later call __sanitizer::PrintFlagDescriptions() to dump all the flag names and their descriptions. Add the 'help' flag and make ASan, TSan and MSan print the flags if 'help' is set to 1. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204339 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/dd')
-rw-r--r--lib/tsan/dd/dd_rtl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tsan/dd/dd_rtl.cc b/lib/tsan/dd/dd_rtl.cc
index 474684397..7f3c75e94 100644
--- a/lib/tsan/dd/dd_rtl.cc
+++ b/lib/tsan/dd/dd_rtl.cc
@@ -76,7 +76,7 @@ void InitializeFlags(Flags *f, const char *env) {
f->allow_addr2line = true;
// Override from command line.
- ParseFlag(env, &f->second_deadlock_stack, "second_deadlock_stack");
+ ParseFlag(env, &f->second_deadlock_stack, "second_deadlock_stack", "");
ParseCommonFlagsFromString(f, env);
// Copy back to common flags.