cxxrtl: use log_id() where appropriate. NFC.
authorwhitequark <whitequark@whitequark.org>
Tue, 21 Apr 2020 23:42:56 +0000 (23:42 +0000)
committerwhitequark <whitequark@whitequark.org>
Tue, 21 Apr 2020 23:42:56 +0000 (23:42 +0000)
backends/cxxrtl/cxxrtl.cc

index ab8888e089f0114acc954cd4cf6ac8e1580652c6..3cdc5ab6b8c0db8274ef1d82da93a057cd52cdd8 100644 (file)
@@ -1971,9 +1971,9 @@ struct CxxrtlWorker {
 
                        if (!feedback_wires.empty()) {
                                has_feedback_arcs = true;
-                               log("Module `%s' contains feedback arcs through wires:\n", module->name.c_str());
+                               log("Module `%s' contains feedback arcs through wires:\n", log_id(module));
                                for (auto wire : feedback_wires)
-                                       log("  %s\n", wire->name.c_str());
+                                       log("  %s\n", log_id(wire));
                        }
 
                        for (auto wire : module->wires()) {
@@ -2002,9 +2002,9 @@ struct CxxrtlWorker {
                        }
                        if (!buffered_wires.empty()) {
                                has_buffered_wires = true;
-                               log("Module `%s' contains buffered combinatorial wires:\n", module->name.c_str());
+                               log("Module `%s' contains buffered combinatorial wires:\n", log_id(module));
                                for (auto wire : buffered_wires)
-                                       log("  %s\n", wire->name.c_str());
+                                       log("  %s\n", log_id(wire));
                        }
 
                        eval_converges[module] = feedback_wires.empty() && buffered_wires.empty();