Changeset fe26fbf for src/main.cc
- Timestamp:
- Feb 7, 2017, 1:01:34 PM (9 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:
- 35b1bf4
- Parents:
- dbe8f244 (diff), b4d65c7 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
rdbe8f244 rfe26fbf 35 35 #include "CodeGen/FixNames.h" 36 36 #include "CodeGen/FixMain.h" 37 #include "CodeTools/DeclStats.h" 37 38 #include "ControlStruct/Mutate.h" 38 39 #include "SymTab/Validate.h" … … 61 62 bboxp = false, 62 63 ctorinitp = false, 64 declstatsp = false, 63 65 exprp = false, 64 66 expraltp = false, … … 244 246 } // if 245 247 248 if ( declstatsp ) { 249 CodeTools::printDeclStats( translationUnit ); 250 deleteAll( translationUnit ); 251 return 0; 252 } 253 246 254 if ( bresolvep ) { 247 255 dump( translationUnit ); … … 339 347 340 348 void parse_cmdline( int argc, char * argv[], const char *& filename ) { 341 enum { Ast, Bbox, Bresolver, CtorInitFix, Expr, ExprAlt, Grammar, LibCFA, Nopreamble, Parse, Prototypes, Resolver, Symbol, Tree, TupleExpansion, Validate, };349 enum { Ast, Bbox, Bresolver, CtorInitFix, DeclStats, Expr, ExprAlt, Grammar, LibCFA, Nopreamble, Parse, Prototypes, Resolver, Symbol, Tree, TupleExpansion, Validate, }; 342 350 343 351 static struct option long_opts[] = { … … 346 354 { "before-resolver", no_argument, 0, Bresolver }, 347 355 { "ctorinitfix", no_argument, 0, CtorInitFix }, 356 { "decl-stats", no_argument, 0, DeclStats }, 348 357 { "expr", no_argument, 0, Expr }, 349 358 { "expralt", no_argument, 0, ExprAlt }, … … 365 374 366 375 int c; 367 while ( (c = getopt_long( argc, argv, "abBc efglmnpqrstTvyzD:F:", long_opts, &long_index )) != -1 ) {376 while ( (c = getopt_long( argc, argv, "abBcdefglmnpqrstTvyzD:F:", long_opts, &long_index )) != -1 ) { 368 377 switch ( c ) { 369 378 case Ast: … … 381 390 case 'c': 382 391 ctorinitp = true; 392 break; 393 case DeclStats: 394 case 'd': 395 declstatsp = true; 383 396 break; 384 397 case Expr:
Note:
See TracChangeset
for help on using the changeset viewer.