summaryrefslogtreecommitdiffstats
path: root/llvm/runtime/libprofile/GCDAProfiling.c
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2013-02-27 08:28:35 +0000
committerNick Lewycky <nicholas@mxc.ca>2013-02-27 08:28:35 +0000
commit5e5421a64520e171f363e19c2dc5d6617a1d4461 (patch)
tree2abe6a1441827132ce8160b0c34b3ab4913fc0c4 /llvm/runtime/libprofile/GCDAProfiling.c
parentc98cddd024dfd90b8cf7e7ffa9be8f588116c969 (diff)
downloadbcm5719-llvm-5e5421a64520e171f363e19c2dc5d6617a1d4461.tar.gz
bcm5719-llvm-5e5421a64520e171f363e19c2dc5d6617a1d4461.zip
Forgot that this file needs to be C89 not C99 thanks to MSVC. No functionality
change! llvm-svn: 176176
Diffstat (limited to 'llvm/runtime/libprofile/GCDAProfiling.c')
-rw-r--r--llvm/runtime/libprofile/GCDAProfiling.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/runtime/libprofile/GCDAProfiling.c b/llvm/runtime/libprofile/GCDAProfiling.c
index d9f3b326389..8a805805ce7 100644
--- a/llvm/runtime/libprofile/GCDAProfiling.c
+++ b/llvm/runtime/libprofile/GCDAProfiling.c
@@ -161,15 +161,15 @@ void llvm_gcda_increment_indirect_counter(uint32_t *predecessor,
}
void llvm_gcda_emit_function(uint32_t ident, const char *function_name) {
+ uint32_t len = 3;
#ifdef DEBUG_GCDAPROFILING
printf("llvmgcda: function id=%x name=%s\n", ident,
function_name ? function_name : "NULL");
#endif
if (!output_file) return;
- /* function tag */
+ /* function tag */
fwrite("\0\0\0\1", 4, 1, output_file);
- uint32_t len = 3;
if (function_name)
len += 1 + length_of_string(function_name);
write_int32(len);
OpenPOWER on IntegriCloud