diff --git a/vhdlpp/debug.cc b/vhdlpp/debug.cc index 22fb312a6..dfa44257d 100644 --- a/vhdlpp/debug.cc +++ b/vhdlpp/debug.cc @@ -101,7 +101,7 @@ void ComponentBase::dump_ports(ostream&out, int indent) const } } -void Scope::dump_scope(ostream&out) const +void ScopeBase::dump_scope(ostream&out) const { // Dump types out << " -- imported types" << endl; diff --git a/vhdlpp/scope.h b/vhdlpp/scope.h index 444583d09..df1f1daba 100644 --- a/vhdlpp/scope.h +++ b/vhdlpp/scope.h @@ -90,6 +90,8 @@ class ScopeBase { finalizers_.push_back(s); } + void dump_scope(ostream&out) const; + protected: void cleanup(); @@ -154,9 +156,6 @@ class Scope : public ScopeBase { ComponentBase* find_component(perm_string by_name); - public: - void dump_scope(ostream&out) const; - protected: // Helper method for emitting signals in the scope. int emit_signals(ostream&out, Entity*ent, Architecture*arc);