summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2013-12-04 12:51:42 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2013-12-04 12:51:42 +0000
commitb8c367b49d700461d2d6b3b806ec7a864bb02391 (patch)
tree32eaeae44d0d7a13a2c4ab8dfd34157dd968b00b
parent31e9554024e3c3f3ab2c406a489abd285bcdfc93 (diff)
downloadbcm5719-llvm-b8c367b49d700461d2d6b3b806ec7a864bb02391.tar.gz
bcm5719-llvm-b8c367b49d700461d2d6b3b806ec7a864bb02391.zip
[ASan] Use 'extern "C"' rather than 'extern' for global variables exposed in the interface
llvm-svn: 196379
-rw-r--r--compiler-rt/lib/asan/asan_mapping.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/asan/asan_mapping.h b/compiler-rt/lib/asan/asan_mapping.h
index 1fecaeb35e1..b097f841f4f 100644
--- a/compiler-rt/lib/asan/asan_mapping.h
+++ b/compiler-rt/lib/asan/asan_mapping.h
@@ -65,8 +65,8 @@ static const u64 kPPC64_ShadowOffset64 = 1ULL << 41;
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
OpenPOWER on IntegriCloud