The counters are unsigned.
authorNick Lewycky <nicholas@mxc.ca>
Tue, 12 Apr 2011 19:35:45 +0000 (19:35 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 12 Apr 2011 19:35:45 +0000 (19:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129380 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/libprofile/LineProfiling.c

index 6e6fa196be1026cf9c294af451eea532a683ffe6..4116ab9504ac74183ad8a271a9aa2ff8888f7677 100644 (file)
@@ -28,7 +28,7 @@ void llvm_prof_linectr_start_file(const char *orig_filename) {
 /* Emit data about a counter to the data file. */
 void llvm_prof_linectr_emit_counter(const char *dir, const char *file,
                                     uint32_t line, uint32_t column,
-                                    int64_t *counter) {
+                                    uint64_t *counter) {
   printf("%s/%s:%u:%u %lu\n", dir, file, line, column, *counter);
 }