Disabled the per-default dumping of ILANG code
authorClifford Wolf <clifford@clifford.at>
Thu, 21 Mar 2013 08:12:32 +0000 (09:12 +0100)
committerClifford Wolf <clifford@clifford.at>
Thu, 21 Mar 2013 08:12:32 +0000 (09:12 +0100)
kernel/driver.cc

index bc605a461535f3182751b9ce6005c44836916100..61f160a6bcb04e4b423e31fd8dac2cbfd8914047 100644 (file)
@@ -89,10 +89,15 @@ static void run_backend(std::string filename, std::string command, RTLIL::Design
                        command = "ilang";
                else if (filename == "-")
                        command = "ilang";
+               else if (filename.empty())
+                       return;
                else
                        log_error("Can't guess frontend for input file `%s' (missing -f option)!\n", filename.c_str());
        }
 
+       if (filename.empty())
+               filename = "-";
+
        if (filename == "-") {
                log("\n-- Writing to stdout using backend `%s' --\n", command.c_str());
        } else {
@@ -226,7 +231,7 @@ int main(int argc, char **argv)
        std::string backend_command = "auto";
        std::vector<std::string> passes_commands;
        std::vector<void*> loaded_modules;
-       std::string output_filename = "-";
+       std::string output_filename = "";
        std::string scriptfile = "";
        bool got_output_filename = false;