~ubuntu-branches/ubuntu/saucy/verilator/saucy-proposed

« back to all changes in this revision

Viewing changes to src/V3Dead.cpp

  • Committer: Package Import Robot
  • Author(s): أحمد المحمودي (Ahmed El-Mahmoudy)
  • Date: 2013-02-10 17:14:43 UTC
  • mfrom: (1.2.17)
  • Revision ID: package-import@ubuntu.com-20130210171443-58ibaqe3eq5uitns
Tags: 3.845-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
206
206
            AstNodeModule* nextmodp;
207
207
            for (AstNodeModule* modp = v3Global.rootp()->modulesp(); modp; modp=nextmodp) {
208
208
                nextmodp = modp->nextp()->castNodeModule();
209
 
                if (modp->level()>2     && modp->user1()==0) {
 
209
                if (modp->level()>2     && modp->user1()==0 && !modp->internal()) {
210
210
                    // > 2 because L1 is the wrapper, L2 is the top user module
211
211
                    UINFO(4,"  Dead module "<<modp<<endl);
212
212
                    // And its children may now be killable too; correct counts