[compiler-rt] r184294 - [ASan] Delete excessive 'extern "C"' around mlock* interceptors.
Alexander Potapenko
glider at google.com
Wed Jun 19 04:36:51 PDT 2013
Author: glider
Date: Wed Jun 19 06:36:51 2013
New Revision: 184294
URL: http://llvm.org/viewvc/llvm-project?rev=184294&view=rev
Log:
[ASan] Delete excessive 'extern "C"' around mlock* interceptors.
Modified:
compiler-rt/trunk/lib/asan/asan_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=184294&r1=184293&r2=184294&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_interceptors.cc Wed Jun 19 06:36:51 2013
@@ -252,7 +252,6 @@ static void MlockIsUnsupported() {
Printf("INFO: AddressSanitizer ignores mlock/mlockall/munlock/munlockall\n");
}
-extern "C" {
INTERCEPTOR(int, mlock, const void *addr, uptr len) {
MlockIsUnsupported();
return 0;
@@ -272,7 +271,6 @@ INTERCEPTOR(int, munlockall, void) {
MlockIsUnsupported();
return 0;
}
-} // extern "C"
static inline int CharCmp(unsigned char c1, unsigned char c2) {
return (c1 == c2) ? 0 : (c1 < c2) ? -1 : 1;
More information about the llvm-commits
mailing list