Changeset fea7ca7 for src/main.cc
- Timestamp:
- Apr 29, 2016, 12:26:50 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- d8ba086
- Parents:
- a0fdbd5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
ra0fdbd5 rfea7ca7 10 10 // Created On : Fri May 15 23:12:02 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Thu Apr 28 12:24:46201612 // Last Modified On : Fri Apr 29 12:02:21 2016 13 13 // Update Count : 200 14 14 // … … 61 61 astp = false, 62 62 bresolvep = false, 63 bboxp = false, 63 64 ctorinitp = false, 64 65 exprp = false, … … 76 77 codegenp = false; 77 78 78 enum { Ast, B resolver, CtorInitFix, Expr, ExprAlt, Grammar, LibCFA, Nopreamble, Parse, Prototypes, Resolver, Symbol, Tree, Validate, };79 enum { Ast, Bbox, Bresolver, CtorInitFix, Expr, ExprAlt, Grammar, LibCFA, Nopreamble, Parse, Prototypes, Resolver, Symbol, Tree, Validate, }; 79 80 80 81 static struct option long_opts[] = { 81 82 { "ast", no_argument, 0, Ast }, 83 { "before-box", no_argument, 0, Bbox }, 82 84 { "before-resolver", no_argument, 0, Bresolver }, 83 85 { "ctorinitfix", no_argument, 0, CtorInitFix }, … … 105 107 106 108 int c; 107 while ( (c = getopt_long( argc, argv, "ab cefFglnpqrstvyzD:", long_opts, &long_index )) != -1 ) {109 while ( (c = getopt_long( argc, argv, "abBcefFglnpqrstvyzD:", long_opts, &long_index )) != -1 ) { 108 110 switch ( c ) { 109 111 case Ast: … … 115 117 bresolvep = true; 116 118 break; 117 case CtorInitFix: 118 case 'c': 119 case 'B': // print before resolver steps 120 bboxp = true; 121 break; 122 case CtorInitFix: 123 case 'c': 119 124 ctorinitp = true; 120 125 break; … … 292 297 OPTPRINT( "convertLvalue" ) 293 298 GenPoly::convertLvalue( translationUnit ); 299 300 if ( bboxp ) { 301 dump( translationUnit ); 302 return 0; 303 } 294 304 OPTPRINT( "box" ) 295 305 GenPoly::box( translationUnit );
Note: See TracChangeset
for help on using the changeset viewer.