aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rtlil.cc
diff options
context:
space:
mode:
authorRuben Undheim <ruben.undheim@gmail.com>2016-06-18 10:24:21 +0200
committerRuben Undheim <ruben.undheim@gmail.com>2016-06-18 10:53:55 +0200
commit178ff3e7f6f9766f0b1a3e8dcc96e030aea59b15 (patch)
tree0da57cc51ffbe1f20d7ca326753b1ab8c5585769 /kernel/rtlil.cc
parent3380281e15ca61cec8beda70938fb7b6f4c121d6 (diff)
downloadyosys-178ff3e7f6f9766f0b1a3e8dcc96e030aea59b15.tar.gz
yosys-178ff3e7f6f9766f0b1a3e8dcc96e030aea59b15.tar.bz2
yosys-178ff3e7f6f9766f0b1a3e8dcc96e030aea59b15.zip
Added support for SystemVerilog packages with localparam definitions
Diffstat (limited to 'kernel/rtlil.cc')
-rw-r--r--kernel/rtlil.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc
index bcd87d3ff..9e09d9f04 100644
--- a/kernel/rtlil.cc
+++ b/kernel/rtlil.cc
@@ -304,6 +304,8 @@ RTLIL::Design::~Design()
{
for (auto it = modules_.begin(); it != modules_.end(); ++it)
delete it->second;
+ for (auto n : packages)
+ delete n;
}
RTLIL::ObjRange<RTLIL::Module*> RTLIL::Design::modules()