Add --dump-treei-<srcfile>, bug894.

This commit is contained in:
Wilson Snyder
2015-03-12 19:48:04 -04:00
parent 486d69da5f
commit 0ee5743853
57 changed files with 112 additions and 89 deletions
+1 -1
View File
@@ -1013,7 +1013,7 @@ void AstNode::dumpTreeAndNext(ostream& os, const string& indent, int maxDepth) {
}
void AstNode::dumpTreeFile(const string& filename, bool append, bool doDump) {
if (v3Global.opt.dumpTree() && doDump) {
if (doDump) {
{ // Write log & close
UINFO(2,"Dumping "<<filename<<endl);
const auto_ptr<ofstream> logsp (V3File::new_ofstream(filename, append));