summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-09-07 19:36:16 (GMT)
committerEvan Martin <martine@danga.com>2012-09-07 19:36:16 (GMT)
commit31330231f1955279a6296cf9425a1ea9221919b1 (patch)
treea9f8cc234c1fdb9e8bef6755b02dfebe8c691c9b
parentcce1b9854832bec89d55ddc2df8d496968b958da (diff)
downloadNinja-31330231f1955279a6296cf9425a1ea9221919b1.zip
Ninja-31330231f1955279a6296cf9425a1ea9221919b1.tar.gz
Ninja-31330231f1955279a6296cf9425a1ea9221919b1.tar.bz2
drop special case for msvc bucket count
Calling bucket_count() works locally with MSVC. I wonder if some other change in the code fixed this.
-rw-r--r--src/ninja.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ninja.cc b/src/ninja.cc
index 7585628..fb273be 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -633,12 +633,7 @@ void DumpMetrics(Globals* globals) {
printf("\n");
int count = (int)globals->state->paths_.size();
- int buckets =
-#ifdef _MSC_VER
- (int)globals->state->paths_.comp.bucket_size;
-#else
- (int)globals->state->paths_.bucket_count();
-#endif
+ int buckets = (int)globals->state->paths_.bucket_count();
printf("path->node hash load %.2f (%d entries / %d buckets)\n",
count / (double) buckets, count, buckets);
}