Changeset 511aa69a for src/main.cc
- Timestamp:
- Feb 1, 2017, 2:56:56 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:
- eeaea53
- Parents:
- de90452 (diff), 41a7137 (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
rde90452 r511aa69a 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, … … 212 214 } // if 213 215 216 if ( declstatsp ) { 217 CodeTools::printDeclStats( translationUnit ); 218 deleteAll( translationUnit ); 219 return 0; 220 } 221 214 222 // add the assignment statement after the initialization of a type parameter 215 223 OPTPRINT( "validate" ) … … 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.