From: Bill Wendling Date: Thu, 28 Jul 2011 18:12:20 +0000 (+0000) Subject: Use version 402 for the GCDA files when compiling for Apple. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ad759c5a073dbd66d3297347c64da3ab148a92a4;p=oota-llvm.git 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 --- diff --git a/runtime/libprofile/GCDAProfiling.c b/runtime/libprofile/GCDAProfiling.c index e066b227c5c..ac3a62c79f4 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);