llvm.org GIT mirror llvm / f404449
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 Nick Lewycky 7 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
160160 }
161161
162162 void llvm_gcda_emit_function(uint32_t ident, const char *function_name) {
163 uint32_t len = 3;
163164 #ifdef DEBUG_GCDAPROFILING
164165 printf("llvmgcda: function id=%x name=%s\n", ident,
165166 function_name ? function_name : "NULL");
166167 #endif
167168 if (!output_file) return;
168169
169 /* function tag */
170 /* function tag */
170171 fwrite("\0\0\0\1", 4, 1, output_file);
171 uint32_t len = 3;
172172 if (function_name)
173173 len += 1 + length_of_string(function_name);
174174 write_int32(len);