diff options
author | whitequark <whitequark@whitequark.org> | 2020-06-09 06:26:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 06:26:02 +0000 |
commit | 4351194e8ce94e7078b67a20e5fc92777d6cb3e6 (patch) | |
tree | 7d2027cda96eeb6c16506ca8b1c9df2fe475efa7 /backends | |
parent | 83f84afc0b617fe78fb7cfa31fb9d1cd202e22f2 (diff) | |
parent | 53688a24b531adcc99c091f728e9657d16010467 (diff) | |
download | yosys-4351194e8ce94e7078b67a20e5fc92777d6cb3e6.tar.gz yosys-4351194e8ce94e7078b67a20e5fc92777d6cb3e6.tar.bz2 yosys-4351194e8ce94e7078b67a20e5fc92777d6cb3e6.zip |
Merge pull request #2107 from whitequark/flatten-hdlname
flatten: preserve original object names
Diffstat (limited to 'backends')
-rw-r--r-- | backends/cxxrtl/cxxrtl_backend.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |