summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-10-02 12:35:42 +0000
committerAlexey Samsonov <samsonov@google.com>2012-10-02 12:35:42 +0000
commit298e237d7ec745482bc52850104a6bea17ed3c1f (patch)
treef4e6df4198b0dadfac0bd99e37c45e658ba567f0 /compiler-rt/lib
parent2bd39fd2decebc6b51f61fc1f4f35a0d973ff17a (diff)
downloadbcm5719-llvm-298e237d7ec745482bc52850104a6bea17ed3c1f.tar.gz
bcm5719-llvm-298e237d7ec745482bc52850104a6bea17ed3c1f.zip
[ASan] Add extern C for __asan_symbolize on Windows
llvm-svn: 165003
Diffstat (limited to 'compiler-rt/lib')
-rw-r--r--compiler-rt/lib/asan/asan_win.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/asan_win.cc b/compiler-rt/lib/asan/asan_win.cc
index 8bee62e6df3..f04c73cf7c8 100644
--- a/compiler-rt/lib/asan/asan_win.cc
+++ b/compiler-rt/lib/asan/asan_win.cc
@@ -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
OpenPOWER on IntegriCloud