Skip to content

Commit 7b7e931

Browse files
authored
Update sanitizer_symbolizer_libcdep.cpp
1 parent e6c76c3 commit 7b7e931

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_libcdep.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,16 @@ Symbolizer *Symbolizer::GetOrInit() {
2626
return symbolizer_;
2727
}
2828

29-
#if SANITIZER_WINDOWS
3029
// If the 'symbolize' flag is set to 0, it clears the tools
3130
// associated with the symbolizer to prevent unnecessary symbolization and
3231
// resource usage. This is necessary because of the late binding of the
3332
// overridden method, __asan_default_options().
34-
void Symbolizer::UpdateSymbolizerTools() {
33+
void Symbolizer::ClearTools() {
3534
SpinMutexLock l(&init_mu_);
3635
if (!common_flags()->symbolize) {
3736
symbolizer_->tools_.clear();
3837
}
3938
}
40-
#endif
4139

4240
// See sanitizer_symbolizer_markup.cpp.
4341
#if !SANITIZER_SYMBOLIZER_MARKUP

0 commit comments

Comments
 (0)