Changeset 6b9b047


Ignore:
Timestamp:
Jul 13, 2017, 3:48:19 PM (4 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
1d776fd
Parents:
65cec25
Message:

Add PassVisitor? implementation for ReferenceType?

Location:
src/Common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Common/PassVisitor.h

    r65cec25 r6b9b047  
    113113        virtual void visit( PointerType *pointerType ) override final;
    114114        virtual void visit( ArrayType *arrayType ) override final;
     115        virtual void visit( ReferenceType *referenceType ) override final;
    115116        virtual void visit( FunctionType *functionType ) override final;
    116117        virtual void visit( StructInstType *aggregateUseType ) override final;
     
    198199        virtual Type* mutate( PointerType *pointerType ) override final;
    199200        virtual Type* mutate( ArrayType *arrayType ) override final;
     201        virtual Type* mutate( ReferenceType *referenceType ) override final;
    200202        virtual Type* mutate( FunctionType *functionType ) override final;
    201203        virtual Type* mutate( StructInstType *aggregateUseType ) override final;
  • src/Common/PassVisitor.impl.h

    r65cec25 r6b9b047  
    786786
    787787template< typename pass_type >
     788void PassVisitor< pass_type >::visit( ReferenceType * node ) {
     789        VISIT_BODY( node );
     790}
     791
     792template< typename pass_type >
    788793void PassVisitor< pass_type >::visit( FunctionType * node ) {
    789794        VISIT_BODY( node );
     
    11181123
    11191124template< typename pass_type >
     1125Type * PassVisitor< pass_type >::mutate( ReferenceType * node ) {
     1126        MUTATE_BODY( Type, node );
     1127}
     1128
     1129template< typename pass_type >
    11201130Type * PassVisitor< pass_type >::mutate( FunctionType * node ) {
    11211131        MUTATE_BODY( Type, node );
Note: See TracChangeset for help on using the changeset viewer.