summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Haarman <llvm@inglorion.net>2016-10-24 19:56:18 +0000
committerBob Haarman <llvm@inglorion.net>2016-10-24 19:56:18 +0000
commit2bf4a14b3ecdbb30bd6270d16f3709b00a8ac9fc (patch)
tree9559a19108955fbea31852da7172e83d7be1ceed
parent4fc4e42dea2547f40d3672ccf473fc2fbbdfc903 (diff)
downloadbcm5719-llvm-2bf4a14b3ecdbb30bd6270d16f3709b00a8ac9fc.tar.gz
bcm5719-llvm-2bf4a14b3ecdbb30bd6270d16f3709b00a8ac9fc.zip
[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 llvm-svn: 285010
-rw-r--r--compiler-rt/lib/asan/asan_win_dynamic_runtime_thunk.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler-rt/lib/asan/asan_win_dynamic_runtime_thunk.cc b/compiler-rt/lib/asan/asan_win_dynamic_runtime_thunk.cc
index a0224f699ac..445522a6dbf 100644
--- a/compiler-rt/lib/asan/asan_win_dynamic_runtime_thunk.cc
+++ b/compiler-rt/lib/asan/asan_win_dynamic_runtime_thunk.cc
@@ -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
OpenPOWER on IntegriCloud