vhdlpp: Moved dump_scope() to ScopeBase class.

This commit is contained in:
Maciej Suminski 2015-12-14 13:17:36 +01:00
parent 40075e11ab
commit 23633c498f
2 changed files with 3 additions and 4 deletions

View File

@ -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;

View File

@ -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);