From 47e5fcba57135025124192626dcb11d9578e4860 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Wed, 25 Jul 2018 03:01:35 +0000 Subject: [profile] Support profiling runtime on Fuchsia This ports the profiling runtime on Fuchsia and enables the instrumentation. Unlike on other platforms, Fuchsia doesn't use files to dump the instrumentation data since on Fuchsia, filesystem may not be accessible to the instrumented process. We instead use the data sink to pass the profiling data to the system the same sanitizer runtimes do. Differential Revision: https://reviews.llvm.org/D47208 llvm-svn: 337881 --- compiler-rt/lib/profile/GCDAProfiling.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compiler-rt/lib/profile/GCDAProfiling.c') diff --git a/compiler-rt/lib/profile/GCDAProfiling.c b/compiler-rt/lib/profile/GCDAProfiling.c index f5c647c7772..cbca365510b 100644 --- a/compiler-rt/lib/profile/GCDAProfiling.c +++ b/compiler-rt/lib/profile/GCDAProfiling.c @@ -20,6 +20,8 @@ |* \*===----------------------------------------------------------------------===*/ +#if !defined(__Fuchsia__) + #include #include #include @@ -602,3 +604,5 @@ void llvm_gcov_init(fn_ptr wfn, fn_ptr ffn) { atexit(llvm_writeout_files); } } + +#endif -- cgit v1.2.3