Changes in src/main.cc [626dbc10:375a068]
- File:
-
- 1 edited
-
src/main.cc (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
r626dbc10 r375a068 69 69 symtabp = false, 70 70 treep = false, 71 tuplep = false,72 71 validp = false, 73 72 errorp = false, … … 268 267 Tuples::expandUniqueExpr( translationUnit ); 269 268 270 OPTPRINT( "convertSpecializations" ) // needs to happen before tuple types are expanded271 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 280 269 OPTPRINT("instantiateGenerics") 281 270 GenPoly::instantiateGeneric( translationUnit ); 282 271 OPTPRINT( "copyParams" ); 283 272 GenPoly::copyParams( translationUnit ); 273 OPTPRINT( "convertSpecializations" ) 274 GenPoly::convertSpecializations( translationUnit ); 284 275 OPTPRINT( "convertLvalue" ) 285 276 GenPoly::convertLvalue( translationUnit ); … … 291 282 OPTPRINT( "box" ) 292 283 GenPoly::box( translationUnit ); 284 OPTPRINT( "expandTuples" ); // xxx - is this the right place for this? 285 Tuples::expandTuples( translationUnit ); 293 286 294 287 // print tree right before code generation … … 334 327 335 328 void 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, }; 337 330 338 331 static struct option long_opts[] = { … … 351 344 { "symbol", no_argument, 0, Symbol }, 352 345 { "tree", no_argument, 0, Tree }, 353 { "tuple-expansion", no_argument, 0, TupleExpansion },354 346 { "validate", no_argument, 0, Validate }, 355 347 { 0, 0, 0, 0 } … … 360 352 361 353 int c; 362 while ( (c = getopt_long( argc, argv, "abBcefglnpqrst TvyzD:F:", long_opts, &long_index )) != -1 ) {354 while ( (c = getopt_long( argc, argv, "abBcefglnpqrstvyzD:F:", long_opts, &long_index )) != -1 ) { 363 355 switch ( c ) { 364 356 case Ast: … … 370 362 bresolvep = true; 371 363 break; 372 case 'B': // print before boxsteps364 case 'B': // print before resolver steps 373 365 bboxp = true; 374 366 break; … … 416 408 case 't': // build in tree 417 409 treep = true; 418 break;419 case TupleExpansion:420 case 'T': // print after tuple expansion421 tuplep = true;422 410 break; 423 411 case 'v': // dump AST after decl validation pass
Note:
See TracChangeset
for help on using the changeset viewer.