aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-06-09 07:52:27 +0000
committerGitHub <noreply@github.com>2020-06-09 07:52:27 +0000
commitc172b30c24285faa2b57f84a2a5162c5f3dcfb4c (patch)
treec4f9e10f877b78b4abc31193ca30b7f17243ea0a
parent4351194e8ce94e7078b67a20e5fc92777d6cb3e6 (diff)
parent4e7d8377471c6e115cc80d97866fb41ff40c5835 (diff)
downloadyosys-c172b30c24285faa2b57f84a2a5162c5f3dcfb4c.tar.gz
yosys-c172b30c24285faa2b57f84a2a5162c5f3dcfb4c.tar.bz2
yosys-c172b30c24285faa2b57f84a2a5162c5f3dcfb4c.zip
Merge pull request #2125 from whitequark/cxxrtl-fix-namespace
cxxrtl: add missing namespace
-rw-r--r--backends/cxxrtl/cxxrtl_vcd_capi.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/cxxrtl/cxxrtl_vcd_capi.cc b/backends/cxxrtl/cxxrtl_vcd_capi.cc
index 46e4f1c45..52a9198b8 100644
--- a/backends/cxxrtl/cxxrtl_vcd_capi.cc
+++ b/backends/cxxrtl/cxxrtl_vcd_capi.cc
@@ -44,7 +44,7 @@ void cxxrtl_vcd_add(cxxrtl_vcd vcd, const char *name, cxxrtl_object *object) {
// Note the copy. We don't know whether `object` came from a design (in which case it is
// an instance of `debug_item`), or from user code (in which case it is an instance of
// `cxxrtl_object`), so casting the pointer wouldn't be safe.
- vcd->writer.add(name, debug_item(*object));
+ vcd->writer.add(name, cxxrtl::debug_item(*object));
}
void cxxrtl_vcd_add_from(cxxrtl_vcd vcd, cxxrtl_handle handle) {
@@ -55,7 +55,7 @@ void cxxrtl_vcd_add_from_if(cxxrtl_vcd vcd, cxxrtl_handle handle, void *data,
int (*filter)(void *data, const char *name,
const cxxrtl_object *object)) {
vcd->writer.add(cxxrtl_debug_items_from_handle(handle),
- [=](const std::string &name, const debug_item &item) {
+ [=](const std::string &name, const cxxrtl::debug_item &item) {
return filter(data, name.c_str(), static_cast<const cxxrtl_object*>(&item));
});
}