summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-07-29 21:12:50 +0200
committerClifford Wolf <clifford@clifford.at>2014-07-29 21:12:50 +0200
commite6df25bf740b259027541db3543a769ecfc92d4f (patch)
treed13ebb8ce9ed90ed78ba0c1d6bf99ba916701145 /kernel
parente605af8a4937533b35068071e14f5bd92c2e5b4f (diff)
Renamed "write_autotest" to "test_autotb" and moved to passes/tests/
Diffstat (limited to 'kernel')
-rw-r--r--kernel/register.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/register.cc b/kernel/register.cc
index da356983..4569481f 100644
--- a/kernel/register.cc
+++ b/kernel/register.cc
@@ -376,7 +376,9 @@ void Frontend::frontend_call(RTLIL::Design *design, FILE *f, std::string filenam
design->check();
}
-Backend::Backend(std::string name, std::string short_help) : Pass("write_"+name, short_help), backend_name(name)
+Backend::Backend(std::string name, std::string short_help) :
+ Pass(name.substr(0, 1) == "=" ? name.substr(1) : "write_"+name, short_help),
+ backend_name(name.substr(0, 1) == "=" ? name.substr(1) : name)
{
}