[compiler-rt] r286346 - Pacify lint check
Jonas Hahnfeld via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 9 00:36:46 PST 2016
Author: hahnfeld
Date: Wed Nov 9 02:36:45 2016
New Revision: 286346
URL: http://llvm.org/viewvc/llvm-project?rev=286346&view=rev
Log:
Pacify lint check
Modified:
compiler-rt/trunk/lib/asan/asan_win.cc
compiler-rt/trunk/lib/asan/asan_win_dll_thunk.cc
compiler-rt/trunk/lib/asan/asan_win_dynamic_runtime_thunk.cc
Modified: compiler-rt/trunk/lib/asan/asan_win.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_win.cc?rev=286346&r1=286345&r2=286346&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_win.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_win.cc Wed Nov 9 02:36:45 2016
@@ -355,8 +355,8 @@ static void NTAPI asan_thread_init(void
}
#pragma section(".CRT$XLAB", long, read) // NOLINT
-__declspec(allocate(".CRT$XLAB")) void (NTAPI *__asan_tls_init)(
- void *, unsigned long, void *) = asan_thread_init;
+__declspec(allocate(".CRT$XLAB")) void (NTAPI *__asan_tls_init)(void *,
+ unsigned long, void *) = asan_thread_init;
#endif
Modified: compiler-rt/trunk/lib/asan/asan_win_dll_thunk.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_win_dll_thunk.cc?rev=286346&r1=286345&r2=286346&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_win_dll_thunk.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_win_dll_thunk.cc Wed Nov 9 02:36:45 2016
@@ -468,7 +468,7 @@ static void NTAPI asan_thread_init(void
}
#pragma section(".CRT$XLAB", long, read) // NOLINT
-__declspec(allocate(".CRT$XLAB")) void (NTAPI *__asan_tls_init)(
- void *, unsigned long, void *) = asan_thread_init;
+__declspec(allocate(".CRT$XLAB")) void (NTAPI *__asan_tls_init)(void *,
+ unsigned long, void *) = asan_thread_init;
#endif // ASAN_DLL_THUNK
Modified: compiler-rt/trunk/lib/asan/asan_win_dynamic_runtime_thunk.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_win_dynamic_runtime_thunk.cc?rev=286346&r1=286345&r2=286346&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_win_dynamic_runtime_thunk.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_win_dynamic_runtime_thunk.cc Wed Nov 9 02:36:45 2016
@@ -62,7 +62,8 @@ static int InitializeClonedVariables() {
return 0;
}
-static void NTAPI asan_thread_init(void *mod, unsigned long reason, void *reserved) {
+static void NTAPI asan_thread_init(void *mod, unsigned long reason,
+ void *reserved) {
if (reason == DLL_PROCESS_ATTACH) InitializeClonedVariables();
}
@@ -71,8 +72,8 @@ static void NTAPI asan_thread_init(void
// initializer is needed as a backup.
__declspec(allocate(".CRT$XIB")) int (*__asan_initialize_cloned_variables)() =
InitializeClonedVariables;
-__declspec(allocate(".CRT$XLAB")) void (NTAPI *__asan_tls_init)(
- void *, unsigned long, void *) = asan_thread_init;
+__declspec(allocate(".CRT$XLAB")) void (NTAPI *__asan_tls_init)(void *,
+ unsigned long, void *) = asan_thread_init;
////////////////////////////////////////////////////////////////////////////////
// For some reason, the MD CRT doesn't call the C/C++ terminators during on DLL
More information about the llvm-commits
mailing list