[llvm-commits] [llvm] r136369 - /llvm/trunk/runtime/libprofile/GCDAProfiling.c

Bill Wendling isanbard at gmail.com
Thu Jul 28 11:12:20 PDT 2011


Author: void
Date: Thu Jul 28 13:12:20 2011
New Revision: 136369

URL: http://llvm.org/viewvc/llvm-project?rev=136369&view=rev
Log:
Use version 402 for the GCDA files when compiling for Apple.

Modified:
    llvm/trunk/runtime/libprofile/GCDAProfiling.c

Modified: llvm/trunk/runtime/libprofile/GCDAProfiling.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/runtime/libprofile/GCDAProfiling.c?rev=136369&r1=136368&r2=136369&view=diff
==============================================================================
--- llvm/trunk/runtime/libprofile/GCDAProfiling.c (original)
+++ llvm/trunk/runtime/libprofile/GCDAProfiling.c Thu Jul 28 13:12:20 2011
@@ -114,7 +114,11 @@
   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);





More information about the llvm-commits mailing list