Add support for classes defined in $root scope.

This commit is contained in:
Stephen Williams
2014-09-15 17:37:30 -07:00
parent fa21527e9f
commit 480668fee6
15 changed files with 153 additions and 34 deletions
+5
View File
@@ -2411,6 +2411,11 @@ void dll_target::scope(const NetScope*net)
{
if (net->parent()==0 && net->type()==NetScope::CLASS) {
if (debug_emit) {
cerr << "dll_target::scope: "
<< "Add class " << scope_path(net)
<< " as a root scope." << endl;
}
add_root(net);
} if (net->parent() == 0) {