diff options
author | Evan Martin <martine@danga.com> | 2011-12-07 17:35:02 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-12-07 17:35:02 (GMT) |
commit | 48526b9c08f22ddcf7e36ca02fde0202312920fa (patch) | |
tree | e9c0890d2e5cb27b90ce117945d4babb069bac0e /src/build.cc | |
parent | d27d21a8c38debfd69c1deaa302cdb500511e0af (diff) | |
download | Ninja-48526b9c08f22ddcf7e36ca02fde0202312920fa.zip Ninja-48526b9c08f22ddcf7e36ca02fde0202312920fa.tar.gz Ninja-48526b9c08f22ddcf7e36ca02fde0202312920fa.tar.bz2 |
make Node::in_edge_ private
Diffstat (limited to 'src/build.cc')
-rw-r--r-- | src/build.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/build.cc b/src/build.cc index e109535..3b478fa 100644 --- a/src/build.cc +++ b/src/build.cc @@ -190,7 +190,7 @@ bool Plan::AddTarget(Node* node, string* err) { } bool Plan::AddSubTarget(Node* node, vector<Node*>* stack, string* err) { - Edge* edge = node->in_edge_; + Edge* edge = node->in_edge(); if (!edge) { // Leaf node. if (node->dirty()) { string referenced; @@ -201,7 +201,6 @@ bool Plan::AddSubTarget(Node* node, vector<Node*>* stack, string* err) { } return false; } - assert(edge); if (CheckDependencyCycle(node, stack, err)) return false; @@ -455,7 +454,7 @@ Node* Builder::AddTarget(const string& name, string* err) { bool Builder::AddTarget(Node* node, string* err) { node->StatIfNecessary(disk_interface_); - if (Edge* in_edge = node->in_edge_) { + if (Edge* in_edge = node->in_edge()) { if (!in_edge->RecomputeDirty(state_, disk_interface_, err)) return false; if (in_edge->outputs_ready()) |