[compiler-rt] f559bf3 - [gcov] Delete unused llvm_gcda_increment_indirect_counter
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 9 17:00:22 PDT 2020
Author: Fangrui Song
Date: 2020-09-09T16:58:03-07:00
New Revision: f559bf31adb21220bbb39e0524b4113f9611fff4
URL: https://github.com/llvm/llvm-project/commit/f559bf31adb21220bbb39e0524b4113f9611fff4
DIFF: https://github.com/llvm/llvm-project/commit/f559bf31adb21220bbb39e0524b4113f9611fff4.diff
LOG: [gcov] Delete unused llvm_gcda_increment_indirect_counter
It has been unused since r157564 (2012).
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 d57fdbae5371..cf6c44bae641 100644
--- a/compiler-rt/lib/profile/GCDAProfiling.c
+++ b/compiler-rt/lib/profile/GCDAProfiling.c
@@ -406,32 +406,6 @@ void llvm_gcda_start_file(const char *orig_filename, uint32_t version,
#endif
}
-/* Given an array of pointers to counters (counters), increment the n-th one,
- * where we're also given a pointer to n (predecessor).
- */
-COMPILER_RT_VISIBILITY
-void llvm_gcda_increment_indirect_counter(uint32_t *predecessor,
- uint64_t **counters) {
- uint64_t *counter;
- uint32_t pred;
-
- pred = *predecessor;
- if (pred == 0xffffffff)
- return;
- counter = counters[pred];
-
- /* Don't crash if the pred# is out of sync. This can happen due to threads,
- or because of a TODO in GCOVProfiling.cpp buildEdgeLookupTable(). */
- if (counter)
- ++*counter;
-#ifdef DEBUG_GCDAPROFILING
- else
- fprintf(stderr,
- "llvmgcda: increment_indirect_counter counters=%08llx, pred=%u\n",
- *counter, *predecessor);
-#endif
-}
-
COMPILER_RT_VISIBILITY
void llvm_gcda_emit_function(uint32_t ident, uint32_t func_checksum,
uint32_t cfg_checksum) {
More information about the llvm-commits
mailing list