mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-17 00:27:31 +00:00
Small code cleanup. No functionality change.
llvm-svn: 157502
This commit is contained in:
parent
3651e385d6
commit
a909ffb08b
@ -43,10 +43,8 @@ static void write_int32(uint32_t i) {
|
||||
}
|
||||
|
||||
static void write_int64(uint64_t i) {
|
||||
uint32_t lo, hi;
|
||||
lo = i >> 0;
|
||||
hi = i >> 32;
|
||||
|
||||
uint32_t lo = i >> 0;
|
||||
uint32_t hi = i >> 32;
|
||||
write_int32(lo);
|
||||
write_int32(hi);
|
||||
}
|
||||
@ -76,7 +74,6 @@ static char *mangle_filename(const char *orig_filename) {
|
||||
strcpy(filename, prefix);
|
||||
strcat(filename, "/");
|
||||
strcat(filename, orig_filename);
|
||||
|
||||
return filename;
|
||||
}
|
||||
|
||||
@ -184,15 +181,13 @@ void llvm_gcda_emit_arcs(uint32_t num_counters, uint64_t *counters) {
|
||||
if (!output_file) return;
|
||||
fwrite("\0\0\xa1\1", 4, 1, output_file);
|
||||
write_int32(num_counters * 2);
|
||||
for (i = 0; i < num_counters; ++i) {
|
||||
for (i = 0; i < num_counters; ++i)
|
||||
write_int64(counters[i]);
|
||||
}
|
||||
|
||||
#ifdef DEBUG_GCDAPROFILING
|
||||
printf("llvmgcda: %u arcs\n", num_counters);
|
||||
for (i = 0; i < num_counters; ++i) {
|
||||
for (i = 0; i < num_counters; ++i)
|
||||
printf("llvmgcda: %llu\n", (unsigned long long)counters[i]);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user