summaryrefslogtreecommitdiffstats
path: root/llvm/runtime
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
commit25338424399618fd8839dcf372e4a135cd60fd73 (patch)
tree6770da9ec50c5e4e5a82f370ff3bb49778214082 /llvm/runtime
parent1c4bfe5ac69fe13c37a7858b633c209fc47711d8 (diff)
downloadbcm5719-llvm-25338424399618fd8839dcf372e4a135cd60fd73.tar.gz
bcm5719-llvm-25338424399618fd8839dcf372e4a135cd60fd73.zip
Use version 402 for the GCDA files when compiling for Apple.
llvm-svn: 136369
Diffstat (limited to 'llvm/runtime')
-rw-r--r--llvm/runtime/libprofile/GCDAProfiling.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/runtime/libprofile/GCDAProfiling.c b/llvm/runtime/libprofile/GCDAProfiling.c
index e066b227c5c..ac3a62c79f4 100644
--- a/llvm/runtime/libprofile/GCDAProfiling.c
+++ b/llvm/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);
OpenPOWER on IntegriCloud