summaryrefslogtreecommitdiffstats
path: root/src/build_log.cc
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2014-01-04 05:26:50 (GMT)
committerNico Weber <nicolasweber@gmx.de>2014-01-04 05:26:50 (GMT)
commit1513693dce3aa6aa3af74965b6eb55a3cd37111e (patch)
treeab7254a048e2d0cd7b7c4a4380deda0ed2fe0c5e /src/build_log.cc
parentc8b5ad32899503a1f992f7db75fd2c56e8d49238 (diff)
downloadNinja-1513693dce3aa6aa3af74965b6eb55a3cd37111e.zip
Ninja-1513693dce3aa6aa3af74965b6eb55a3cd37111e.tar.gz
Ninja-1513693dce3aa6aa3af74965b6eb55a3cd37111e.tar.bz2
Rename "IsDead" to "BuildLogUser".
Diffstat (limited to 'src/build_log.cc')
-rw-r--r--src/build_log.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/build_log.cc b/src/build_log.cc
index 825a8f5..c041514 100644
--- a/src/build_log.cc
+++ b/src/build_log.cc
@@ -108,9 +108,10 @@ BuildLog::~BuildLog() {
Close();
}
-bool BuildLog::OpenForWrite(const string& path, IsDead* is_dead, string* err) {
+bool BuildLog::OpenForWrite(const string& path, BuildLogUser& user,
+ string* err) {
if (needs_recompaction_) {
- if (!Recompact(path, is_dead, err))
+ if (!Recompact(path, user, err))
return false;
}
@@ -350,7 +351,7 @@ bool BuildLog::WriteEntry(FILE* f, const LogEntry& entry) {
entry.output.c_str(), entry.command_hash) > 0;
}
-bool BuildLog::Recompact(const string& path, IsDead* is_dead, string* err) {
+bool BuildLog::Recompact(const string& path, BuildLogUser& user, string* err) {
METRIC_RECORD(".ninja_log recompact");
printf("Recompacting log...\n");
@@ -370,7 +371,7 @@ bool BuildLog::Recompact(const string& path, IsDead* is_dead, string* err) {
vector<StringPiece> dead_outputs;
for (Entries::iterator i = entries_.begin(); i != entries_.end(); ++i) {
- if (is_dead->IsPathDead(i->first)) {
+ if (user.IsPathDead(i->first)) {
dead_outputs.push_back(i->first);
continue;
}