aboutsummaryrefslogtreecommitdiff
path: root/runtime/libprofile
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-07-28 18:12:20 +0000
committerBill Wendling <isanbard@gmail.com>2011-07-28 18:12:20 +0000
commitad759c5a073dbd66d3297347c64da3ab148a92a4 (patch)
treebd9b0b96ac18a2be64ef3f0199a6022e83e575f9 /runtime/libprofile
parent354712c5a506449676e6fcac6b623af4092e7100 (diff)
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
Diffstat (limited to 'runtime/libprofile')
-rw-r--r--runtime/libprofile/GCDAProfiling.c4
1 files changed, 4 insertions, 0 deletions
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);