forked from OSchip/llvm-project
[ASan] Add extern C for __asan_symbolize on Windows
llvm-svn: 165003
This commit is contained in:
parent
2bd39fd2de
commit
298e237d7e
|
@ -144,6 +144,8 @@ void AsanPlatformThreadInit() {
|
|||
// ---------------------- Interface ---------------- {{{1
|
||||
using namespace __asan; // NOLINT
|
||||
|
||||
extern "C" {
|
||||
SANITIZER_INTERFACE_ATTRIBUTE NOINLINE
|
||||
bool __asan_symbolize(const void *addr, char *out_buffer, int buffer_size) {
|
||||
ScopedLock lock(&dbghelp_lock);
|
||||
if (!dbghelp_initialized) {
|
||||
|
@ -184,7 +186,7 @@ bool __asan_symbolize(const void *addr, char *out_buffer, int buffer_size) {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
|
||||
|
||||
#endif // _WIN32
|
||||
|
|
Loading…
Reference in New Issue