From 929e9dd48e5b7f123e5e2d439e113050382ef495 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Wed, 10 Sep 2014 22:45:09 +0000 Subject: [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 --- lib/lsan/lsan.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/lsan/lsan.cc') 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; -- cgit v1.2.3