Fixed typo in "log_cmd_error_exception"

This commit is contained in:
Clifford Wolf 2014-11-07 12:48:15 +01:00
parent a346c0bf2b
commit 99cdfb3110
5 changed files with 9 additions and 9 deletions

View File

@ -194,7 +194,7 @@ void log_cmd_error(const char *format, ...)
log("ERROR: "); log("ERROR: ");
logv(format, ap); logv(format, ap);
log_flush(); log_flush();
throw log_cmd_error_expection(); throw log_cmd_error_exception();
} }
logv_error(format, ap); logv_error(format, ap);

View File

@ -38,7 +38,7 @@ YOSYS_NAMESPACE_BEGIN
#define S__LINE__sub1(x) S__LINE__sub2(x) #define S__LINE__sub1(x) S__LINE__sub2(x)
#define S__LINE__ S__LINE__sub1(__LINE__) #define S__LINE__ S__LINE__sub1(__LINE__)
struct log_cmd_error_expection { }; struct log_cmd_error_exception { };
extern std::vector<FILE*> log_files; extern std::vector<FILE*> log_files;
extern std::vector<std::ostream*> log_streams; extern std::vector<std::ostream*> log_streams;

View File

@ -668,9 +668,9 @@ void run_frontend(std::string filename, std::string command, RTLIL::Design *desi
Pass::call(design, command); Pass::call(design, command);
} }
} }
catch (log_cmd_error_expection) { catch (log_cmd_error_exception) {
Frontend::current_script_file = backup_script_file; Frontend::current_script_file = backup_script_file;
throw log_cmd_error_expection(); throw log_cmd_error_exception();
} }
Frontend::current_script_file = backup_script_file; Frontend::current_script_file = backup_script_file;
@ -852,7 +852,7 @@ void shell(RTLIL::Design *design)
try { try {
log_assert(design->selection_stack.size() == 1); log_assert(design->selection_stack.size() == 1);
Pass::call(design, command); Pass::call(design, command);
} catch (log_cmd_error_expection) { } catch (log_cmd_error_exception) {
while (design->selection_stack.size() > 1) while (design->selection_stack.size() > 1)
design->selection_stack.pop_back(); design->selection_stack.pop_back();
log_reset_stack(); log_reset_stack();

View File

@ -76,11 +76,11 @@ struct TeePass : public Pass {
try { try {
std::vector<std::string> new_args(args.begin() + argidx, args.end()); std::vector<std::string> new_args(args.begin() + argidx, args.end());
Pass::call(design, new_args); Pass::call(design, new_args);
} catch (log_cmd_error_expection) { } catch (log_cmd_error_exception) {
for (auto cf : files_to_close) for (auto cf : files_to_close)
fclose(cf); fclose(cf);
log_files = backup_log_files; log_files = backup_log_files;
throw log_cmd_error_expection(); throw log_cmd_error_exception();
} }
for (auto cf : files_to_close) for (auto cf : files_to_close)

View File

@ -85,9 +85,9 @@ struct TracePass : public Pass {
try { try {
std::vector<std::string> new_args(args.begin() + argidx, args.end()); std::vector<std::string> new_args(args.begin() + argidx, args.end());
Pass::call(design, new_args); Pass::call(design, new_args);
} catch (log_cmd_error_expection) { } catch (log_cmd_error_exception) {
design->monitors.erase(&monitor); design->monitors.erase(&monitor);
throw log_cmd_error_expection(); throw log_cmd_error_exception();
} }
design->monitors.erase(&monitor); design->monitors.erase(&monitor);