cxxrtl: minor debug-related improvements.
authorwhitequark <whitequark@whitequark.org>
Mon, 8 Jun 2020 03:21:08 +0000 (03:21 +0000)
committerwhitequark <whitequark@whitequark.org>
Mon, 8 Jun 2020 12:50:35 +0000 (12:50 +0000)
backends/cxxrtl/cxxrtl_backend.cc

index 64af5dab8df80cf87bac381406cc99dd13349aa0..e2fd6b672ea8617c257359c0ad4ba201c946f13d 100644 (file)
@@ -2419,7 +2419,8 @@ struct CxxrtlBackend : public Backend {
                log("        no debug information.\n");
                log("\n");
                log("    -g1\n");
-               log("        debug information for non-localized public wires.\n");
+               log("        debug information for non-optimized public wires. this also makes it\n");
+               log("        possible to use the C API.\n");
                log("\n");
        }
 
@@ -2494,7 +2495,7 @@ struct CxxrtlBackend : public Backend {
                        case 0:
                                break;
                        default:
-                               log_cmd_error("Invalid optimization level %d.\n", opt_level);
+                               log_cmd_error("Invalid debug information level %d.\n", debug_level);
                }
 
                std::ofstream intf_f;