Changeset 5c56a22 for src/main.cpp


Ignore:
Timestamp:
Mar 20, 2026, 8:22:37 AM (34 hours ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
2c2e865
Parents:
742fa15
Message:

harmonize AST dump and flag names, and the order the passes are called

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cpp

    r742fa15 r5c56a22  
    1010// Created On       : Fri May 15 23:12:02 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Jun 23 16:38:09 2024
    13 // Update Count     : 691
     12// Last Modified On : Fri Mar 20 08:10:38 2026
     13// Update Count     : 710
    1414//
    1515
     
    202202
    203203                PASS( "Translate Exception Declarations", ControlStruct::translateExcept, transUnit );
    204                 DUMP( exdeclp, transUnit );
     204                DUMP( excpdeclp, transUnit );
    205205                PASS( "Verify Ctor, Dtor & Assign", Validate::verifyCtorDtorAssign, transUnit );
    206206                PASS( "Replace Typedefs", Validate::replaceTypedef, transUnit );
     
    242242                } // if
    243243
    244                 if ( expraltp ) {
     244                if ( expranlp ) {
    245245                        ResolvExpr::printCandidates( transUnit );
    246246                        return EXIT_SUCCESS;
    247247                } // if
    248248
    249                 DUMP( validp, transUnit );
     249                DUMP( valideclp, transUnit );
    250250
    251251                PASS( "Translate Throws", ControlStruct::translateThrows, transUnit );
     
    265265                } // if
    266266
    267                 DUMP( bresolvep, transUnit );
     267                DUMP( bresolverp, transUnit );
    268268
    269269                if ( resolvprotop ) {
     
    273273
    274274                PASS( "Resolve", ResolvExpr::resolve, transUnit );
    275                 DUMP( exprp, transUnit );
    276                 PASS( "Fix Init", InitTweak::fix, transUnit, buildingLibrary() ); // Here
     275                DUMP( expranlp, transUnit );
     276                PASS( "Fix Init", InitTweak::fix, transUnit, buildingLibrary() );
    277277                PASS( "Erase With", ResolvExpr::eraseWith, transUnit );
    278278
    279279                // fix ObjectDecl - replaces ConstructorInit nodes
    280                 DUMP( ctorinitp, transUnit );
     280                DUMP( ctordtorp, transUnit );
    281281
    282282                // Currently not working due to unresolved issues with UniqueExpr
     
    297297
    298298                PASS( "Instantiate Generics", GenPoly::instantiateGeneric, transUnit );
    299                 DUMP( genericsp, transUnit );
     299                DUMP( instgenp, transUnit );
    300300
    301301                PASS( "Convert L-Value", GenPoly::convertLvalue, transUnit );
     
    422422        // AST dumps
    423423        { "ast", astp, true, "print AST after parsing" },
    424         { "excpdecl", exdeclp, true, "print AST after translating exception decls" },
    425         { "symevt", symtabp, true, "print AST after symbol table events" },
    426         { "expralt", expraltp, true, "print AST after expressions alternatives" },
    427         { "valdecl", validp, true, "print AST after declaration validation pass" },
    428         { "bresolver", bresolvep, true, "print AST before resolver step" },
    429         { "expranly", exprp, true, "print AST after expression analysis" },
    430         { "ctordtor", ctorinitp, true, "print AST after ctor/dtor are replaced" },
     424        { "excpdecl", excpdeclp, true, "print AST after translating exception decls" },
     425        // These flags are currently disconnected from whatever they did in the past.
     426        // { "symevt", symtabp, true, "print AST after symbol table events" },
     427        // { "expralt", expraltp, true, "print AST after expressions alternatives" },
     428        { "validecl", valideclp, true, "print AST after declaration validation pass" },
     429        { "bresolver", bresolverp, true, "print AST before resolver step" },
     430        { "expranl", expranlp, true, "print AST after expression analysis" },
     431        { "ctordtor", ctordtorp, true, "print AST after ctor/dtor are replaced" },
    431432        { "tuple", tuplep, true, "print AST after tuple expansion" },
    432         { "instgen", genericsp, true, "print AST after instantiate generics" },
     433        { "instgen", instgenp, true, "print AST after instantiate generics" },
    433434        { "bbox", bboxp, true, "print AST before box pass" },
    434         { "bcodegen", bcodegenp, true, "print AST before code generation" }
     435        { "bcodegen", bcodegenp, true, "print AST before code generation" },
    435436};
    436437enum { printoptsSize = sizeof( printopts ) / sizeof( printopts[0] ) };
Note: See TracChangeset for help on using the changeset viewer.