Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    r626dbc10 r375a068  
    6969        symtabp = false,
    7070        treep = false,
    71         tuplep = false,
    7271        validp = false,
    7372        errorp = false,
     
    268267                Tuples::expandUniqueExpr( translationUnit );
    269268
    270                 OPTPRINT( "convertSpecializations" ) // needs to happen before tuple types are expanded
    271                 GenPoly::convertSpecializations( translationUnit );
    272 
    273                 OPTPRINT( "expandTuples" ); // xxx - is this the right place for this?
    274                 Tuples::expandTuples( translationUnit );
    275                 if ( tuplep ) {
    276                         dump( translationUnit );
    277                         return 0;
    278                 }
    279 
    280269                OPTPRINT("instantiateGenerics")
    281270                GenPoly::instantiateGeneric( translationUnit );
    282271                OPTPRINT( "copyParams" );
    283272                GenPoly::copyParams( translationUnit );
     273                OPTPRINT( "convertSpecializations" )
     274                GenPoly::convertSpecializations( translationUnit );
    284275                OPTPRINT( "convertLvalue" )
    285276                GenPoly::convertLvalue( translationUnit );
     
    291282                OPTPRINT( "box" )
    292283                GenPoly::box( translationUnit );
     284                OPTPRINT( "expandTuples" ); // xxx - is this the right place for this?
     285                Tuples::expandTuples( translationUnit );
    293286
    294287                // print tree right before code generation
     
    334327
    335328void parse_cmdline( int argc, char * argv[], const char *& filename ) {
    336         enum { Ast, Bbox, Bresolver, CtorInitFix, Expr, ExprAlt, Grammar, LibCFA, Nopreamble, Parse, Prototypes, Resolver, Symbol, Tree, TupleExpansion, Validate, };
     329        enum { Ast, Bbox, Bresolver, CtorInitFix, Expr, ExprAlt, Grammar, LibCFA, Nopreamble, Parse, Prototypes, Resolver, Symbol, Tree, Validate, };
    337330
    338331        static struct option long_opts[] = {
     
    351344                { "symbol", no_argument, 0, Symbol },
    352345                { "tree", no_argument, 0, Tree },
    353                 { "tuple-expansion", no_argument, 0, TupleExpansion },
    354346                { "validate", no_argument, 0, Validate },
    355347                { 0, 0, 0, 0 }
     
    360352
    361353        int c;
    362         while ( (c = getopt_long( argc, argv, "abBcefglnpqrstTvyzD:F:", long_opts, &long_index )) != -1 ) {
     354        while ( (c = getopt_long( argc, argv, "abBcefglnpqrstvyzD:F:", long_opts, &long_index )) != -1 ) {
    363355                switch ( c ) {
    364356                  case Ast:
     
    370362                        bresolvep = true;
    371363                        break;
    372                   case 'B':                                                                             // print before box steps
     364                  case 'B':                                                                             // print before resolver steps
    373365                        bboxp = true;
    374366                        break;
     
    416408                  case 't':                                                                             // build in tree
    417409                        treep = true;
    418                         break;
    419                   case TupleExpansion:
    420                   case 'T':                                                                             // print after tuple expansion
    421                         tuplep = true;
    422410                        break;
    423411                  case 'v':                                                                             // dump AST after decl validation pass
Note: See TracChangeset for help on using the changeset viewer.