Changeset 626dbc10 for src/main.cc
- Timestamp:
- Dec 21, 2016, 3:12:19 PM (8 years ago)
- 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:
- b940dc71
- Parents:
- e33f321
- git-author:
- Rob Schluntz <rschlunt@…> (12/21/16 15:07:41)
- git-committer:
- Rob Schluntz <rschlunt@…> (12/21/16 15:12:19)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
re33f321 r626dbc10 69 69 symtabp = false, 70 70 treep = false, 71 tuplep = false, 71 72 validp = false, 72 73 errorp = false, … … 266 267 OPTPRINT( "expandUniqueExpr" ); // xxx - is this the right place for this? want to expand ASAP so that subsequent passes don't need to worry about double-visiting a unique expr - needs to go after InitTweak::fix so that copy constructed return declarations are reused 267 268 Tuples::expandUniqueExpr( translationUnit ); 269 270 OPTPRINT( "convertSpecializations" ) // needs to happen before tuple types are expanded 271 GenPoly::convertSpecializations( translationUnit ); 272 268 273 OPTPRINT( "expandTuples" ); // xxx - is this the right place for this? 269 274 Tuples::expandTuples( translationUnit ); 275 if ( tuplep ) { 276 dump( translationUnit ); 277 return 0; 278 } 270 279 271 280 OPTPRINT("instantiateGenerics") … … 273 282 OPTPRINT( "copyParams" ); 274 283 GenPoly::copyParams( translationUnit ); 275 OPTPRINT( "convertSpecializations" )276 GenPoly::convertSpecializations( translationUnit );277 284 OPTPRINT( "convertLvalue" ) 278 285 GenPoly::convertLvalue( translationUnit ); … … 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.