llvm.org GIT mirror llvm / 53caba6
Small code cleanup. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157502 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 8 years ago
1 changed file(s) with 4 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
4242 }
4343
4444 static void write_int64(uint64_t i) {
45 uint32_t lo, hi;
46 lo = i >> 0;
47 hi = i >> 32;
48
45 uint32_t lo = i >> 0;
46 uint32_t hi = i >> 32;
4947 write_int32(lo);
5048 write_int32(hi);
5149 }
7573 strcpy(filename, prefix);
7674 strcat(filename, "/");
7775 strcat(filename, orig_filename);
78
7976 return filename;
8077 }
8178
183180 if (!output_file) return;
184181 fwrite("\0\0\xa1\1", 4, 1, output_file);
185182 write_int32(num_counters * 2);
186 for (i = 0; i < num_counters; ++i) {
183 for (i = 0; i < num_counters; ++i)
187184 write_int64(counters[i]);
188 }
189185
190186 #ifdef DEBUG_GCDAPROFILING
191187 printf("llvmgcda: %u arcs\n", num_counters);
192 for (i = 0; i < num_counters; ++i) {
188 for (i = 0; i < num_counters; ++i)
193189 printf("llvmgcda: %llu\n", (unsigned long long)counters[i]);
194 }
195190 #endif
196191 }
197192