Changeset 55d6e8de


Ignore:
Timestamp:
Dec 1, 2017, 2:52:21 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:
1e8bbac9
Parents:
81644e0
Message:

Add CodeGen? for WithStmt?

Location:
src/CodeGen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    r81644e0 r55d6e8de  
    10121012        }
    10131013
     1014        void CodeGenerator::postvisit( WithStmt * with ) {
     1015                if ( ! genC ) {
     1016                        output << "with ( ";
     1017                        genCommaList( with->exprs.begin(), with->exprs.end() );
     1018                        output << " ) ";
     1019                }
     1020                with->stmt->accept( *visitor );
     1021        }
    10141022
    10151023        void CodeGenerator::postvisit( WhileStmt * whileStmt ) {
  • src/CodeGen/CodeGenerator.h

    r81644e0 r55d6e8de  
    102102                void postvisit( CatchStmt * );
    103103                void postvisit( WaitForStmt * );
     104                void postvisit( WithStmt * );
    104105                void postvisit( WhileStmt * );
    105106                void postvisit( ForStmt * );
Note: See TracChangeset for help on using the changeset viewer.