diff options
author | Ruben Undheim <ruben.undheim@gmail.com> | 2016-06-18 14:13:36 +0200 |
---|---|---|
committer | Ruben Undheim <ruben.undheim@gmail.com> | 2016-06-18 14:23:38 +0200 |
commit | a8200a773fb8cf2ce2d8793716b62e01c97dd731 (patch) | |
tree | 45fde92e3cdd9d6bd1585fbdcc6e04076fbb4b9a /frontends | |
parent | 178ff3e7f6f9766f0b1a3e8dcc96e030aea59b15 (diff) | |
download | yosys-a8200a773fb8cf2ce2d8793716b62e01c97dd731.tar.gz yosys-a8200a773fb8cf2ce2d8793716b62e01c97dd731.tar.bz2 yosys-a8200a773fb8cf2ce2d8793716b62e01c97dd731.zip |
A few modifications after pull request comments
- Renamed Design::packages to Design::verilog_packages
- No need to include ast.h in rtlil.h
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/ast/ast.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/ast/ast.cc b/frontends/ast/ast.cc index ba02dd4c5..57de725d8 100644 --- a/frontends/ast/ast.cc +++ b/frontends/ast/ast.cc @@ -997,7 +997,7 @@ void AST::process(RTLIL::Design *design, AstNode *ast, bool dump_ast1, bool dump for (auto n : global_decls) (*it)->children.push_back(n->clone()); - for (auto n : design->packages){ + for (auto n : design->verilog_packages){ for (auto o : n->children) { AstNode *cloned_node = o->clone(); cloned_node->str = n->str + std::string("::") + cloned_node->str.substr(1); @@ -1023,7 +1023,7 @@ void AST::process(RTLIL::Design *design, AstNode *ast, bool dump_ast1, bool dump design->add(process_module(*it, defer)); } else if ((*it)->type == AST_PACKAGE){ - design->packages.push_back((*it)->clone()); + design->verilog_packages.push_back((*it)->clone()); } else global_decls.push_back(*it); |