From ab1de1fcfb0c53bc768deb8f8bacefad7d378b7b Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 10 Sep 2020 10:15:27 -0700 Subject: [PATCH] [gcov] Delete flush_fn_list (unused since D83149) --- clang/lib/Driver/ToolChains/Darwin.cpp | 1 - compiler-rt/lib/profile/GCDAProfiling.c | 5 ----- 2 files changed, 6 deletions(-) diff --git a/clang/lib/Driver/ToolChains/Darwin.cpp b/clang/lib/Driver/ToolChains/Darwin.cpp index 9d22cda..8f2be2a 100644 --- a/clang/lib/Driver/ToolChains/Darwin.cpp +++ b/clang/lib/Driver/ToolChains/Darwin.cpp @@ -1197,7 +1197,6 @@ void Darwin::addProfileRTLibs(const ArgList &Args, if (ForGCOV) { addExportedSymbol(CmdArgs, "___gcov_dump"); addExportedSymbol(CmdArgs, "___gcov_reset"); - addExportedSymbol(CmdArgs, "_flush_fn_list"); addExportedSymbol(CmdArgs, "_writeout_fn_list"); addExportedSymbol(CmdArgs, "_reset_fn_list"); } else { diff --git a/compiler-rt/lib/profile/GCDAProfiling.c b/compiler-rt/lib/profile/GCDAProfiling.c index cf6c44b..4055681 100644 --- a/compiler-rt/lib/profile/GCDAProfiling.c +++ b/compiler-rt/lib/profile/GCDAProfiling.c @@ -128,11 +128,6 @@ struct fn_list { struct fn_list writeout_fn_list; /* - * A list of flush functions that our __gcov_flush() function should call, shared between all dynamic objects. - */ -struct fn_list flush_fn_list; - -/* * A list of reset functions, shared between all dynamic objects. */ struct fn_list reset_fn_list; -- 2.7.4