summaryrefslogtreecommitdiff
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)
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 d1671317..81e53259 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
{