Ignore:
Timestamp:
Jun 12, 2019, 4:06:32 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
21300d7
Parents:
6e3e0717
Message:

Removed global look-up table from UniqueId? to Decl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Expression.h

    r6e3e0717 raaeacf4  
    3939/// but subject to decay-to-pointer and type parameter renaming
    4040struct ParamEntry {
    41         ParamEntry(): decl( 0 ), actualType( 0 ), formalType( 0 ), expr( 0 )/*, inferParams( new InferredParams )*/ {}
    42         ParamEntry( UniqueId decl, Type * actualType, Type * formalType, Expression* expr ): decl( decl ), actualType( actualType ), formalType( formalType ), expr( expr )/*, inferParams( new InferredParams )*/ {}
     41        ParamEntry(): decl( 0 ), declptr(nullptr), actualType( 0 ), formalType( 0 ), expr( 0 )/*, inferParams( new InferredParams )*/ {}
     42        ParamEntry( UniqueId decl, Declaration * declptr, Type * actualType, Type * formalType, Expression* expr )
     43                : decl( decl ), declptr( declptr ), actualType( actualType ), formalType( formalType ), expr( expr )/*, inferParams( new InferredParams )*/ {
     44        }
    4345        ParamEntry( const ParamEntry & other );
    4446        ParamEntry( ParamEntry && other );
     
    4749        ParamEntry & operator=( ParamEntry && other );
    4850
    49         UniqueId decl;
    50         Type * actualType;
    51         Type * formalType;
     51        UniqueId const decl;
     52        Declaration * const declptr;
     53        Type * const actualType;
     54        Type * const formalType;
    5255        Expression * expr;
    5356        // std::unique_ptr< InferredParams > inferParams;
Note: See TracChangeset for help on using the changeset viewer.