[compiler-rt] r285010 - [compiler-rt] moved __asan_schedule_unregister_globals out of anonymous namespace
Bob Haarman via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 24 12:56:18 PDT 2016
Author: inglorion
Date: Mon Oct 24 14:56:18 2016
New Revision: 285010
URL: http://llvm.org/viewvc/llvm-project?rev=285010&view=rev
Log:
[compiler-rt] moved __asan_schedule_unregister_globals out of anonymous namespace
Summary: Newer versions of clang complain that __asan_schedule_unregister_globals is unused. Moving it outside the anonymous namespace gets rid of that warning.
Reviewers: rnk, timurrrr
Subscribers: kubabrecka, dberris
Differential Revision: https://reviews.llvm.org/D25921
Modified:
compiler-rt/trunk/lib/asan/asan_win_dynamic_runtime_thunk.cc
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=285010&r1=285009&r2=285010&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 Mon Oct 24 14:56:18 2016
@@ -77,6 +77,7 @@ void UnregisterGlobals() {
int ScheduleUnregisterGlobals() {
return atexit(UnregisterGlobals);
}
+} // namespace
// We need to call 'atexit(UnregisterGlobals);' as early as possible, but after
// atexit() is initialized (.CRT$XIC). As this is executed before C++
@@ -85,8 +86,6 @@ int ScheduleUnregisterGlobals() {
__declspec(allocate(".CRT$XID"))
int (*__asan_schedule_unregister_globals)() = ScheduleUnregisterGlobals;
-} // namespace
-
////////////////////////////////////////////////////////////////////////////////
// ASan SEH handling.
// We need to set the ASan-specific SEH handler at the end of CRT initialization
More information about the llvm-commits
mailing list