diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-09-10 22:45:09 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-09-10 22:45:09 +0000 |
commit | 929e9dd48e5b7f123e5e2d439e113050382ef495 (patch) | |
tree | 4327426bb544d60dc5caa335fb339f53f8c05ad5 /lib/lsan/lsan.cc | |
parent | 2e26667efa2c81fdcdec09c30a502af35f04f44e (diff) |
[Sanitizer] Get rid of Symbolizer::Get() and Symbolizer::GetOrNull().
We may as well just use Symbolizer::GetOrInit() in all the cases.
Don't call Symbolizer::Get() early in tools initialization: these days
it doesn't do any important setup work, and we may as well create the
symbolizer the first time it's actually needed.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217558 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/lsan/lsan.cc')
-rw-r--r-- | lib/lsan/lsan.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/lsan/lsan.cc b/lib/lsan/lsan.cc index b05292c75..1598fcac4 100644 --- a/lib/lsan/lsan.cc +++ b/lib/lsan/lsan.cc @@ -50,8 +50,6 @@ extern "C" void __lsan_init() { ThreadStart(tid, GetTid()); SetCurrentThread(tid); - Symbolizer::GetOrInit(); - if (common_flags()->detect_leaks && common_flags()->leak_check_at_exit) Atexit(DoLeakCheck); lsan_inited = true; |