[compiler-rt] 626209c - Revert "[gcov] Delete flush_fn_list (unused since D83149)"

Azharuddin Mohammed via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 10 09:54:01 PDT 2020


Author: Azharuddin Mohammed
Date: 2020-09-10T09:53:34-07:00
New Revision: 626209cac0559ebe06a9bd4792fac5d31333c597

URL: https://github.com/llvm/llvm-project/commit/626209cac0559ebe06a9bd4792fac5d31333c597
DIFF: https://github.com/llvm/llvm-project/commit/626209cac0559ebe06a9bd4792fac5d31333c597.diff

LOG: Revert "[gcov] Delete flush_fn_list (unused since D83149)"

This reverts commit 01cdab0b335e21321987505e66f34c24dc55b0d7.

It was causing the instrprof-darwin-exports.c test to fail.
```
Undefined symbols for architecture x86_64:
  "_flush_fn_list", referenced from:
     -exported_symbol[s_list] command line option
```

Added: 
    

Modified: 
    compiler-rt/lib/profile/GCDAProfiling.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/profile/GCDAProfiling.c b/compiler-rt/lib/profile/GCDAProfiling.c
index 405568187241..cf6c44bae641 100644
--- a/compiler-rt/lib/profile/GCDAProfiling.c
+++ b/compiler-rt/lib/profile/GCDAProfiling.c
@@ -127,6 +127,11 @@ 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.
  */


        


More information about the llvm-commits mailing list