Fixed typo in "log_cmd_error_exception"
authorClifford Wolf <clifford@clifford.at>
Fri, 7 Nov 2014 11:48:15 +0000 (12:48 +0100)
committerClifford Wolf <clifford@clifford.at>
Fri, 7 Nov 2014 11:48:15 +0000 (12:48 +0100)
kernel/log.cc
kernel/log.h
kernel/yosys.cc
passes/cmds/tee.cc
passes/cmds/trace.cc

index 1a21e9fe6299fb5b64dd09333db47578b104d7b3..99e92e44ddff5393791842353c91225c56e079f0 100644 (file)
@@ -194,7 +194,7 @@ void log_cmd_error(const char *format, ...)
                log("ERROR: ");
                logv(format, ap);
                log_flush();
-               throw log_cmd_error_expection();
+               throw log_cmd_error_exception();
        }
 
        logv_error(format, ap);
index a6f80892249df662afbfc5ee0d43724a291c0179..707497a99898c171a3d51bc4eca46fb288975b58 100644 (file)
@@ -38,7 +38,7 @@ YOSYS_NAMESPACE_BEGIN
 #define S__LINE__sub1(x) S__LINE__sub2(x)
 #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<std::ostream*> log_streams;
index d4365ee00ee403602f9f179f120dc9301faa5ac2..6cc6431522a104aba35d83ccaf4b18bc3649a722 100644 (file)
@@ -668,9 +668,9 @@ void run_frontend(std::string filename, std::string command, RTLIL::Design *desi
                                        Pass::call(design, command);
                        }
                }
-               catch (log_cmd_error_expection) {
+               catch (log_cmd_error_exception) {
                        Frontend::current_script_file = backup_script_file;
-                       throw log_cmd_error_expection();
+                       throw log_cmd_error_exception();
                }
 
                Frontend::current_script_file = backup_script_file;
@@ -852,7 +852,7 @@ void shell(RTLIL::Design *design)
                try {
                        log_assert(design->selection_stack.size() == 1);
                        Pass::call(design, command);
-               } catch (log_cmd_error_expection) {
+               } catch (log_cmd_error_exception) {
                        while (design->selection_stack.size() > 1)
                                design->selection_stack.pop_back();
                        log_reset_stack();
index 8ef4c89e7b82ae3a8cff126d77f33032bc8df056..e83c938716bd0666fcbbc2adfefc707b04fb8abb 100644 (file)
@@ -76,11 +76,11 @@ struct TeePass : public Pass {
                try {
                        std::vector<std::string> new_args(args.begin() + argidx, args.end());
                        Pass::call(design, new_args);
-               } catch (log_cmd_error_expection) {
+               } catch (log_cmd_error_exception) {
                        for (auto cf : files_to_close)
                                fclose(cf);
                        log_files = backup_log_files;
-                       throw log_cmd_error_expection();
+                       throw log_cmd_error_exception();
                }
 
                for (auto cf : files_to_close)
index ac61be081223ee03732ba2afef84ceab7f911a42..10c67195f5980f3ac001173b148f09ee922fdefb 100644 (file)
@@ -85,9 +85,9 @@ struct TracePass : public Pass {
                try {
                        std::vector<std::string> new_args(args.begin() + argidx, args.end());
                        Pass::call(design, new_args);
-               } catch (log_cmd_error_expection) {
+               } catch (log_cmd_error_exception) {
                        design->monitors.erase(&monitor);
-                       throw log_cmd_error_expection();
+                       throw log_cmd_error_exception();
                }
 
                design->monitors.erase(&monitor);