From 23633c498f290905f60842ff8da045fefe0118ee Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 14 Dec 2015 13:17:36 +0100 Subject: [PATCH] vhdlpp: Moved dump_scope() to ScopeBase class. --- vhdlpp/debug.cc | 2 +- vhdlpp/scope.h | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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);