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 {
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;