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