Changeset fea7ca7 for src/main.cc


Ignore:
Timestamp:
Apr 29, 2016, 12:26:50 PM (9 years ago)
Author:
Rob Schluntz <rschlunt@…>
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
Message:

Account for lvalue returning functions in FixCopyCtor?, removed ConditionalExpr?, CommaExpr?, Logical Expr mutates from Specialize, added before box debug flag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    ra0fdbd5 rfea7ca7  
    1010// Created On       : Fri May 15 23:12:02 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Thu Apr 28 12:24:46 2016
     12// Last Modified On : Fri Apr 29 12:02:21 2016
    1313// Update Count     : 200
    1414//
     
    6161        astp = false,
    6262        bresolvep = false,
     63        bboxp = false,
    6364        ctorinitp = false,
    6465        exprp = false,
     
    7677        codegenp = false;
    7778
    78 enum { Ast, Bresolver, CtorInitFix, Expr, ExprAlt, Grammar, LibCFA, Nopreamble, Parse, Prototypes, Resolver, Symbol, Tree, Validate, };
     79enum { Ast, Bbox, Bresolver, CtorInitFix, Expr, ExprAlt, Grammar, LibCFA, Nopreamble, Parse, Prototypes, Resolver, Symbol, Tree, Validate, };
    7980
    8081static struct option long_opts[] = {
    8182        { "ast", no_argument, 0, Ast },
     83        { "before-box", no_argument, 0, Bbox },
    8284        { "before-resolver", no_argument, 0, Bresolver },
    8385        { "ctorinitfix", no_argument, 0, CtorInitFix },
     
    105107
    106108        int c;
    107         while ( (c = getopt_long( argc, argv, "abcefFglnpqrstvyzD:", long_opts, &long_index )) != -1 ) {
     109        while ( (c = getopt_long( argc, argv, "abBcefFglnpqrstvyzD:", long_opts, &long_index )) != -1 ) {
    108110                switch ( c ) {
    109111                  case Ast:
     
    115117                        bresolvep = true;
    116118                        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':
    119124                        ctorinitp = true;
    120125                        break;
     
    292297                OPTPRINT( "convertLvalue" )
    293298                GenPoly::convertLvalue( translationUnit );
     299
     300                if ( bboxp ) {
     301                        dump( translationUnit );
     302                        return 0;
     303                }
    294304                OPTPRINT( "box" )
    295305                GenPoly::box( translationUnit );
Note: See TracChangeset for help on using the changeset viewer.