[compiler-rt] r191904 - asan/msan: fix "unused function 'OnExit'" warning
Dmitry Vyukov
dvyukov at google.com
Thu Oct 3 08:43:59 PDT 2013
Author: dvyukov
Date: Thu Oct 3 10:43:59 2013
New Revision: 191904
URL: http://llvm.org/viewvc/llvm-project?rev=191904&view=rev
Log:
asan/msan: fix "unused function 'OnExit'" warning
Modified:
compiler-rt/trunk/lib/asan/asan_interceptors.cc
compiler-rt/trunk/lib/msan/msan_interceptors.cc
Modified: compiler-rt/trunk/lib/asan/asan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_interceptors.cc?rev=191904&r1=191903&r2=191904&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_interceptors.cc Thu Oct 3 10:43:59 2013
@@ -94,7 +94,7 @@ void SetThreadName(const char *name) {
asanThreadRegistry().SetThreadName(t->tid(), name);
}
-static int OnExit() {
+int OnExit() {
// FIXME: ask frontend whether we need to return failure.
return 0;
}
Modified: compiler-rt/trunk/lib/msan/msan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/msan_interceptors.cc?rev=191904&r1=191903&r2=191904&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/msan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/msan/msan_interceptors.cc Thu Oct 3 10:43:59 2013
@@ -1112,11 +1112,15 @@ struct MSanInterceptorContext {
bool in_interceptor_scope;
};
-static int OnExit() {
+namespace __msan {
+
+int OnExit() {
// FIXME: ask frontend whether we need to return failure.
return 0;
}
+} // namespace __msan
+
// A version of CHECK_UNPOISED using a saved scope value. Used in common
// interceptors.
#define CHECK_UNPOISONED_CTX(ctx, x, n) \
More information about the llvm-commits
mailing list