Debug: With --debug, run check tree at all steps even if no --dump-more

This commit is contained in:
Wilson Snyder
2013-10-30 23:25:54 -04:00
parent ecfe0283e2
commit 15f512bdee
4 changed files with 82 additions and 82 deletions
+2 -2
View File
@@ -1016,8 +1016,8 @@ void AstNode::dumpTreeAndNext(ostream& os, const string& indent, int maxDepth) {
}
}
void AstNode::dumpTreeFile(const string& filename, bool append) {
if (v3Global.opt.dumpTree()) {
void AstNode::dumpTreeFile(const string& filename, bool append, bool doDump) {
if (v3Global.opt.dumpTree() && doDump) {
{ // Write log & close
UINFO(2,"Dumping "<<filename<<endl);
const auto_ptr<ofstream> logsp (V3File::new_ofstream(filename, append));