From ad759c5a073dbd66d3297347c64da3ab148a92a4 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 28 Jul 2011 18:12:20 +0000 Subject: Use version 402 for the GCDA files when compiling for Apple. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136369 91177308-0d34-0410-b5e6-96231b3b80d8 --- runtime/libprofile/GCDAProfiling.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime') diff --git a/runtime/libprofile/GCDAProfiling.c b/runtime/libprofile/GCDAProfiling.c index e066b227c5..ac3a62c79f 100644 --- a/runtime/libprofile/GCDAProfiling.c +++ b/runtime/libprofile/GCDAProfiling.c @@ -114,7 +114,11 @@ void llvm_gcda_start_file(const char *orig_filename) { output_file = fopen(filename, "wb"); /* gcda file, version 404*, stamp LLVM. */ +#ifdef __APPLE__ + fwrite("adcg*204MVLL", 12, 1, output_file); +#else fwrite("adcg*404MVLL", 12, 1, output_file); +#endif #ifdef DEBUG_GCDAPROFILING printf("llvmgcda: [%s]\n", orig_filename); -- cgit v1.2.3