[ASan] Add extern C for __asan_symbolize on Windows

llvm-svn: 165003
This commit is contained in:
Alexey Samsonov 2012-10-02 12:35:42 +00:00
parent 2bd39fd2de
commit 298e237d7e
1 changed files with 3 additions and 1 deletions

View File

@ -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