Changeset 9b18044


Ignore:
Timestamp:
Sep 1, 2017, 2:37:35 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
2bf9c37
Parents:
7d9ad510
Message:

Handle TraitDecl? in Box Pass2

Location:
src/GenPoly
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/Box.cc

    r7d9ad510 r9b18044  
    141141                        virtual StructDecl *mutate( StructDecl *structDecl ) override;
    142142                        virtual UnionDecl *mutate( UnionDecl *unionDecl ) override;
     143                        virtual TraitDecl *mutate( TraitDecl *unionDecl ) override;
    143144                        virtual TypeDecl *mutate( TypeDecl *typeDecl ) override;
    144145                        virtual TypedefDecl *mutate( TypedefDecl *typedefDecl ) override;
     
    216217                  private:
    217218                };
    218 
    219219        } // anonymous namespace
    220220
     
    13511351                }
    13521352
     1353                TraitDecl * Pass2::mutate( TraitDecl *aggDecl ) {
     1354                        return handleAggDecl( aggDecl );
     1355                }
     1356
    13531357                TypeDecl * Pass2::mutate( TypeDecl *typeDecl ) {
    13541358                        addToTyVarMap( typeDecl, scopeTyVars );
     
    13761380                Type *Pass2::mutate( FunctionType *funcType ) {
    13771381                        scopeTyVars.beginScope();
     1382
    13781383                        makeTyVarMap( funcType, scopeTyVars );
    13791384
  • src/GenPoly/GenPoly.cc

    r7d9ad510 r9b18044  
    433433
    434434        void addToTyVarMap( TypeDecl * tyVar, TyVarMap &tyVarMap ) {
     435                // xxx - should this actually be insert?
    435436                tyVarMap[ tyVar->get_name() ] = TypeDecl::Data{ tyVar };
    436437        }
Note: See TracChangeset for help on using the changeset viewer.