summaryrefslogtreecommitdiff
path: root/runtime
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
commitf404449e23a8584bff19eb5db49e1dc1161afdef (patch)
tree8f10740327055977d88b2f74c15dbd25183caf22 /runtime
parent52b4edf6a1b5d3a9f8a94a63c702d55ed446ecdb (diff)
downloadllvm-f404449e23a8584bff19eb5db49e1dc1161afdef.tar.gz
llvm-f404449e23a8584bff19eb5db49e1dc1161afdef.tar.bz2
llvm-f404449e23a8584bff19eb5db49e1dc1161afdef.tar.xz
Forgot that this file needs to be C89 not C99 thanks to MSVC. No functionality
change! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime')
-rw-r--r--runtime/libprofile/GCDAProfiling.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/libprofile/GCDAProfiling.c b/runtime/libprofile/GCDAProfiling.c
index d9f3b32638..8a805805ce 100644
--- a/runtime/libprofile/GCDAProfiling.c
+++ b/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);