diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2013-11-27 09:54:10 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2013-11-27 09:54:10 +0000 |
commit | 7bd319cc089c0a65d229b67bda9e29b37bb34fa0 (patch) | |
tree | 7498ea31e60b854c6d019134707de4502a84c3c8 /compiler-rt/lib/lsan/lsan.cc | |
parent | tsan: support synchronization by means of linux aio (diff) | |
download | llvm-project-7bd319cc089c0a65d229b67bda9e29b37bb34fa0.tar.gz llvm-project-7bd319cc089c0a65d229b67bda9e29b37bb34fa0.tar.bz2 llvm-project-7bd319cc089c0a65d229b67bda9e29b37bb34fa0.zip |
tsan: fix flags parsing
- running_on_valgrind was not parsed in some contexts
- refactor code a bit
- add comprehensive tests for flags parsing
llvm-svn: 195831
Diffstat (limited to 'compiler-rt/lib/lsan/lsan.cc')
-rw-r--r-- | compiler-rt/lib/lsan/lsan.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/lsan/lsan.cc b/compiler-rt/lib/lsan/lsan.cc index 058bbdba3907..43cfcda42ca9 100644 --- a/compiler-rt/lib/lsan/lsan.cc +++ b/compiler-rt/lib/lsan/lsan.cc @@ -27,12 +27,12 @@ namespace __lsan { static void InitializeCommonFlags() { CommonFlags *cf = common_flags(); - SetCommonFlagDefaults(); + SetCommonFlagsDefaults(cf); cf->external_symbolizer_path = GetEnv("LSAN_SYMBOLIZER_PATH"); cf->malloc_context_size = 30; cf->detect_leaks = true; - ParseCommonFlagsFromString(GetEnv("LSAN_OPTIONS")); + ParseCommonFlagsFromString(cf, GetEnv("LSAN_OPTIONS")); } } // namespace __lsan |