~ubuntu-branches/ubuntu/wily/verilator/wily

« back to all changes in this revision

Viewing changes to src/V3Dead.cpp

  • Committer: Package Import Robot
  • Author(s): أحمد المحمودي (Ahmed El-Mahmoudy)
  • Date: 2014-01-27 10:44:06 UTC
  • mfrom: (1.2.25)
  • Revision ID: package-import@ubuntu.com-20140127104406-s0cbt1mvn7h0169e
Tags: 3.855-1
* New upstream release.
* Refreshed shebang.diff patch.
* debian/copyright: update copyright years

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
//
7
7
//*************************************************************************
8
8
//
9
 
// Copyright 2003-2013 by Wilson Snyder.  This program is free software; you can
 
9
// Copyright 2003-2014 by Wilson Snyder.  This program is free software; you can
10
10
// redistribute it and/or modify it under the terms of either the GNU
11
11
// Lesser General Public License Version 3 or the Perl Artistic License
12
12
// Version 2.0.
103
103
    }
104
104
    void checkDType(AstNodeDType* nodep) {
105
105
        if (!nodep->generic()  // Don't remove generic types
106
 
            && m_elimDTypes) {  // dtypes stick around until post-widthing
 
106
            && m_elimDTypes  // dtypes stick around until post-widthing
 
107
            && !nodep->castMemberDType() // Keep member names iff upper type exists
 
108
            ) {
107
109
            m_varEtcsp.push_back(nodep);
108
110
        }
109
111
        if (AstNode* subnodep = nodep->virtRefDTypep()) subnodep->user1Inc();