[llvm] r176176 - Forgot that this file needs to be C89 not C99 thanks to MSVC. No functionality
Nick Lewycky
nicholas at mxc.ca
Wed Feb 27 00:28:35 PST 2013
Author: nicholas
Date: Wed Feb 27 02:28:35 2013
New Revision: 176176
URL: http://llvm.org/viewvc/llvm-project?rev=176176&view=rev
Log:
Forgot that this file needs to be C89 not C99 thanks to MSVC. No functionality
change!
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=176176&r1=176175&r2=176176&view=diff
==============================================================================
--- llvm/trunk/runtime/libprofile/GCDAProfiling.c (original)
+++ llvm/trunk/runtime/libprofile/GCDAProfiling.c Wed Feb 27 02:28:35 2013
@@ -161,15 +161,15 @@ void llvm_gcda_increment_indirect_counte
}
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);
More information about the llvm-commits
mailing list