[llvm-commits] [compiler-rt] r165003 - /compiler-rt/trunk/lib/asan/asan_win.cc
Alexey Samsonov
samsonov at google.com
Tue Oct 2 05:35:42 PDT 2012
Author: samsonov
Date: Tue Oct 2 07:35:42 2012
New Revision: 165003
URL: http://llvm.org/viewvc/llvm-project?rev=165003&view=rev
Log:
[ASan] Add extern C for __asan_symbolize on Windows
Modified:
compiler-rt/trunk/lib/asan/asan_win.cc
Modified: compiler-rt/trunk/lib/asan/asan_win.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_win.cc?rev=165003&r1=165002&r2=165003&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_win.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_win.cc Tue Oct 2 07:35:42 2012
@@ -144,6 +144,8 @@
// ---------------------- 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 @@
}
return true;
}
-
+} // extern "C"
#endif // _WIN32
More information about the llvm-commits
mailing list