cxxrtl: fix format of hdlnames.

The CXXRTL code that handled the `hdlname` attribute implemented
outdated semantics.
This commit is contained in:
whitequark 2020-06-08 19:50:09 +00:00
parent fbb346ea91
commit 53688a24b5
1 changed files with 1 additions and 1 deletions

View File

@ -508,7 +508,7 @@ std::string get_hdl_name(T *object)
if (object->has_attribute(ID::hdlname)) if (object->has_attribute(ID::hdlname))
return object->get_string_attribute(ID::hdlname); return object->get_string_attribute(ID::hdlname);
else else
return object->name.str(); return object->name.str().substr(1);
} }
struct CxxrtlWorker { struct CxxrtlWorker {