sanitizer_symbolizer_win.cc revision 7847d77b246635211c3bf465421d49d7af5226c1
1//===-- sanitizer_symbolizer_win.cc ---------------------------------------===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file is shared between AddressSanitizer and ThreadSanitizer
11// run-time libraries.
12// Windows-specific implementation of symbolizer parts.
13//===----------------------------------------------------------------------===//
14
15#include "sanitizer_platform.h"
16#if SANITIZER_WINDOWS
17#include "sanitizer_internal_defs.h"
18#include "sanitizer_symbolizer.h"
19
20namespace __sanitizer {
21
22static SymbolizerInterface win_symbolizer;  // Linker initialized.
23
24SymbolizerInterface *getSymbolizer() {
25  return &win_symbolizer;
26}
27
28}  // namespace __sanitizer
29
30#endif  // _WIN32
31