[compiler-rt] r196379 - [ASan] Use 'extern "C"' rather than 'extern' for global variables exposed in the interface
Timur Iskhodzhanov
timurrrr at google.com
Wed Dec 4 04:51:42 PST 2013
Author: timurrrr
Date: Wed Dec 4 06:51:42 2013
New Revision: 196379
URL: http://llvm.org/viewvc/llvm-project?rev=196379&view=rev
Log:
[ASan] Use 'extern "C"' rather than 'extern' for global variables exposed in the interface
Modified:
compiler-rt/trunk/lib/asan/asan_mapping.h
Modified: compiler-rt/trunk/lib/asan/asan_mapping.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_mapping.h?rev=196379&r1=196378&r2=196379&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_mapping.h (original)
+++ compiler-rt/trunk/lib/asan/asan_mapping.h Wed Dec 4 06:51:42 2013
@@ -65,8 +65,8 @@ static const u64 kPPC64_ShadowOffset64 =
static const u64 kMIPS32_ShadowOffset32 = 0x0aaa8000;
#if ASAN_FLEXIBLE_MAPPING_AND_OFFSET == 1
-extern SANITIZER_INTERFACE_ATTRIBUTE uptr __asan_mapping_scale;
-extern SANITIZER_INTERFACE_ATTRIBUTE uptr __asan_mapping_offset;
+extern "C" SANITIZER_INTERFACE_ATTRIBUTE uptr __asan_mapping_scale;
+extern "C" SANITIZER_INTERFACE_ATTRIBUTE uptr __asan_mapping_offset;
# define SHADOW_SCALE (__asan_mapping_scale)
# define SHADOW_OFFSET (__asan_mapping_offset)
#else
More information about the llvm-commits
mailing list