Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    r3e9de01 r490fb92e  
    99// Author           : Peter Buhr and Rob Schluntz
    1010// Created On       : Fri May 15 23:12:02 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Oct  8 18:17:46 2020
    13 // Update Count     : 637
     11// Last Modified By : Andrew Beach
     12// Last Modified On : Tue May 19 12:03:00 2020
     13// Update Count     : 634
    1414//
    1515
     
    343343                        auto transUnit = convert( move( translationUnit ) );
    344344                        PASS( "Resolve", ResolvExpr::resolve( transUnit ) );
     345                        if ( exprp ) {
     346                                translationUnit = convert( move( transUnit ) );
     347                                dump( translationUnit );
     348                                return EXIT_SUCCESS;
     349                        } // if
     350
     351                        PASS( "Fix Init", InitTweak::fix(transUnit, buildingLibrary()));
    345352                        translationUnit = convert( move( transUnit ) );
    346353                } else {
    347354                        PASS( "Resolve", ResolvExpr::resolve( translationUnit ) );
     355                        if ( exprp ) {
     356                                dump( translationUnit );
     357                                return EXIT_SUCCESS;
     358                        }
     359
     360                        PASS( "Fix Init", InitTweak::fix( translationUnit, buildingLibrary() ) );
    348361                }
    349362
    350                 if ( exprp ) {
    351                         dump( translationUnit );
    352                         return EXIT_SUCCESS;
    353                 } // if
    354 
    355363                // fix ObjectDecl - replaces ConstructorInit nodes
    356                 PASS( "Fix Init", InitTweak::fix( translationUnit, buildingLibrary() ) );
    357364                if ( ctorinitp ) {
    358365                        dump ( translationUnit );
     
    451458
    452459
    453 static const char optstring[] = ":c:ghlLmNnpdOAP:S:twW:D:";
     460static const char optstring[] = ":c:ghlLmNnpdP:S:twW:D:";
    454461
    455462enum { PreludeDir = 128 };
     
    478485
    479486static const char * description[] = {
    480         "diagnostic color: never, always, or auto.",            // -c
    481         "wait for gdb to attach",                                                       // -g
    482         "print help message",                                                           // -h
    483         "generate libcfa.c",                                                            // -l
    484         "generate line marks",                                                          // -L
    485         "do not replace main",                                                          // -m
    486         "do not generate line marks",                                           // -N
    487         "do not read prelude",                                                          // -n
     487        "diagnostic color: never, always, or auto.",          // -c
     488        "wait for gdb to attach",                             // -g
     489        "print help message",                                 // -h
     490        "generate libcfa.c",                                  // -l
     491        "generate line marks",                                // -L
     492        "do not replace main",                                // -m
     493        "do not generate line marks",                         // -N
     494        "do not read prelude",                                // -n
    488495        "generate prototypes for prelude functions",            // -p
    489         "only print deterministic output",                  // -d
    490         "Use the old-ast",                                                                      // -O
    491         "Use the new-ast",                                                                      // -A
    492         "print",                                                                                        // -P
     496        "don't print output that isn't deterministic",        // -d
     497        "Use the old-ast",                                    // -O
     498        "Use the new-ast",                                    // -A
     499        "print",                                              // -P
    493500        "<directory> prelude directory for debug/nodebug",      // no flag
    494501        "<option-list> enable profiling information:\n          counters,heap,time,all,none", // -S
    495         "building cfa standard lib",                                            // -t
    496         "",                                                                                                     // -w
    497         "",                                                                                                     // -W
    498         "",                                                                                                     // -D
     502        "building cfa standard lib",                          // -t
     503        "",                                                   // -w
     504        "",                                                   // -W
     505        "",                                                   // -D
    499506}; // description
    500507
Note: See TracChangeset for help on using the changeset viewer.