[llvm-commits] [llvm] r157502 - /llvm/trunk/runtime/libprofile/GCDAProfiling.c
Bill Wendling
isanbard at gmail.com
Fri May 25 14:57:59 PDT 2012
Author: void
Date: Fri May 25 16:57:59 2012
New Revision: 157502
URL: http://llvm.org/viewvc/llvm-project?rev=157502&view=rev
Log:
Small code cleanup. 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=157502&r1=157501&r2=157502&view=diff
==============================================================================
--- llvm/trunk/runtime/libprofile/GCDAProfiling.c (original)
+++ llvm/trunk/runtime/libprofile/GCDAProfiling.c Fri May 25 16:57:59 2012
@@ -43,10 +43,8 @@
}
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 @@
strcpy(filename, prefix);
strcat(filename, "/");
strcat(filename, orig_filename);
-
return filename;
}
@@ -184,15 +181,13 @@
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
}
More information about the llvm-commits
mailing list