From ab234d4be743d7c792b1c76a4af61a7476652345 Mon Sep 17 00:00:00 2001 From: wangmingrong1 Date: Wed, 20 Nov 2024 19:41:37 +0800 Subject: [PATCH] clang/gcov: supports compatibility with gcc standard gcov output Signed-off-by: wangmingrong1 --- libs/libbuiltin/compiler-rt/coverage.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libs/libbuiltin/compiler-rt/coverage.c b/libs/libbuiltin/compiler-rt/coverage.c index 86df2b0f177e9..55e8752fb241c 100644 --- a/libs/libbuiltin/compiler-rt/coverage.c +++ b/libs/libbuiltin/compiler-rt/coverage.c @@ -353,3 +353,13 @@ size_t __llvm_profile_dump(const char *path) #endif } + +void __gcov_dump(void) +{ + char *path = getenv("GCOV_PREFIX"); + __llvm_profile_dump(path); +} + +void __gcov_reset(void) +{ +}