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