summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/asan_stack.cc
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-12-04 08:17:45 +0000
committerAlexey Samsonov <samsonov@google.com>2013-12-04 08:17:45 +0000
commite958f9e480ddf2860495c91cd9bcafee55839703 (patch)
treed0f831e86124012094676f2748b27d076574b642 /compiler-rt/lib/asan/asan_stack.cc
parentea35c0ba0a40594a4b82f82ead6320366dad450d (diff)
downloadbcm5719-llvm-e958f9e480ddf2860495c91cd9bcafee55839703.tar.gz
bcm5719-llvm-e958f9e480ddf2860495c91cd9bcafee55839703.zip
[ASan] Return interface attribute to __sanitizer_print_stack_trace
llvm-svn: 196364
Diffstat (limited to 'compiler-rt/lib/asan/asan_stack.cc')
-rw-r--r--compiler-rt/lib/asan/asan_stack.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/asan_stack.cc b/compiler-rt/lib/asan/asan_stack.cc
index 56fd560d4f6..33b9fc9279b 100644
--- a/compiler-rt/lib/asan/asan_stack.cc
+++ b/compiler-rt/lib/asan/asan_stack.cc
@@ -46,7 +46,10 @@ bool __asan_symbolize(const void *pc, char *out_buffer, int out_size) {
}
#endif
-extern "C" void __sanitizer_print_stack_trace() {
+extern "C" {
+SANITIZER_INTERFACE_ATTRIBUTE
+void __sanitizer_print_stack_trace() {
using namespace __asan;
PRINT_CURRENT_STACK();
}
+} // extern "C"
OpenPOWER on IntegriCloud