Changeset 2162c2c for src/CodeGen


Ignore:
Timestamp:
Jan 11, 2017, 4:11:02 PM (9 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
075734f
Parents:
bb82c03 (diff), d3a85240 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
src/CodeGen
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    rbb82c03 r2162c2c  
    656656        }
    657657
    658         void CodeGenerator::visit( TupleExpr * tupleExpr ) { assert( false ); }
     658        void CodeGenerator::visit( UntypedTupleExpr * tupleExpr ) { assertf( false, "UntypedTupleExpr should not make it to Code Gen" ); }
     659
     660        void CodeGenerator::visit( TupleExpr * tupleExpr ) { assertf( false, "TupleExpr should not make it to Code Gen" ); }
    659661
    660662        void CodeGenerator::visit( TypeExpr * typeExpr ) {}
  • src/CodeGen/CodeGenerator.h

    rbb82c03 r2162c2c  
    7272                virtual void visit( CommaExpr *commaExpr );
    7373                virtual void visit( CompoundLiteralExpr *compLitExpr );
     74                virtual void visit( UntypedTupleExpr *tupleExpr );
    7475                virtual void visit( TupleExpr *tupleExpr );
    7576                virtual void visit( TypeExpr *typeExpr );
  • src/CodeGen/GenType.cc

    rbb82c03 r2162c2c  
    4141                virtual void visit( EnumInstType *enumInst );
    4242                virtual void visit( TypeInstType *typeInst );
     43                virtual void visit( TupleType * tupleType );
    4344                virtual void visit( VarArgsType *varArgsType );
    4445                virtual void visit( ZeroType *zeroType );
     
    197198        }
    198199
     200        void GenType::visit( TupleType * tupleType ) {
     201                assertf( ! mangle, "Tuple types should not make it to Code Gen." );
     202                Visitor::visit( tupleType );
     203        }
     204
    199205        void GenType::visit( VarArgsType *varArgsType ) {
    200206                typeString = "__builtin_va_list " + typeString;
Note: See TracChangeset for help on using the changeset viewer.