From 53688a24b531adcc99c091f728e9657d16010467 Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 8 Jun 2020 19:50:09 +0000 Subject: [PATCH] cxxrtl: fix format of hdlnames. The CXXRTL code that handled the `hdlname` attribute implemented outdated semantics. --- backends/cxxrtl/cxxrtl_backend.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/cxxrtl/cxxrtl_backend.cc b/backends/cxxrtl/cxxrtl_backend.cc index b3aec2110..bf01b263a 100644 --- a/backends/cxxrtl/cxxrtl_backend.cc +++ b/backends/cxxrtl/cxxrtl_backend.cc @@ -508,7 +508,7 @@ std::string get_hdl_name(T *object) if (object->has_attribute(ID::hdlname)) return object->get_string_attribute(ID::hdlname); else - return object->name.str(); + return object->name.str().substr(1); } struct CxxrtlWorker { -- 2.30.2