Chenged "extensions_map" to "extensions_list" in hierarchy.cc
authorClifford Wolf <clifford@clifford.at>
Tue, 27 Mar 2018 12:12:57 +0000 (14:12 +0200)
committerClifford Wolf <clifford@clifford.at>
Tue, 27 Mar 2018 12:12:57 +0000 (14:12 +0200)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
passes/hierarchy/hierarchy.cc

index 21a232572e2d9453a2d2630e35a9998d334ebca8..ba960faf4f6823d34430a1f2c6338cb8caf43f01 100644 (file)
@@ -173,14 +173,14 @@ bool expand_module(RTLIL::Design *design, RTLIL::Module *module, bool flag_check
 
                        for (auto &dir : libdirs)
                        {
-                               static const std::map<std::string, std::string> extensions_map =
+                               static const vector<pair<string, string>> extensions_list =
                                {
                                        {".v", "verilog"},
                                        {".sv", "verilog -sv"},
                                        {".il", "ilang"}
                                };
 
-                               for (auto &ext : extensions_map)
+                               for (auto &ext : extensions_list)
                                {
                                        filename = dir + "/" + RTLIL::unescape_id(cell->type) + ext.first;
                                        if (check_file_exists(filename)) {