aboutsummaryrefslogtreecommitdiffstats
path: root/passes/cmds/rename.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-06-30 01:37:59 +0200
committerClifford Wolf <clifford@clifford.at>2015-06-30 01:37:59 +0200
commitcaa274ada6f2f35119cff943d0e9ed05dfaaeec7 (patch)
tree14562590d3f49ce6379d1426d15b130c8668860c /passes/cmds/rename.cc
parentdf0163cd2b0dfd7c825f13ecb1c22f4f4d494a3b (diff)
downloadyosys-caa274ada6f2f35119cff943d0e9ed05dfaaeec7.tar.gz
yosys-caa274ada6f2f35119cff943d0e9ed05dfaaeec7.tar.bz2
yosys-caa274ada6f2f35119cff943d0e9ed05dfaaeec7.zip
Added design->rename(module, new_name)
Diffstat (limited to 'passes/cmds/rename.cc')
-rw-r--r--passes/cmds/rename.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/passes/cmds/rename.cc b/passes/cmds/rename.cc
index d16713175..81e532590 100644
--- a/passes/cmds/rename.cc
+++ b/passes/cmds/rename.cc
@@ -193,9 +193,7 @@ struct RenamePass : public Pass {
log_cmd_error("No top module found!\n");
log("Renaming module %s to %s.\n", log_id(module), log_id(new_name));
- design->modules_.erase(module->name);
- module->name = new_name;
- design->modules_[module->name] = module;
+ design->rename(module, new_name);
}
else
{