Changeset 6b608c7


Ignore:
Timestamp:
Dec 21, 2022, 3:24:47 PM (19 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, master
Children:
b797d97
Parents:
df9e412
Message:

Moved the 'Hoist Type Decls' pass up because it establishes some (not as enforced) invariants about everything being reachable by ptrs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    rdf9e412 r6b608c7  
    320320                forceFillCodeLocations( transUnit );
    321321
    322                 PASS( "Translate Exception Declarations", ControlStruct::translateExcept( transUnit ) );
    323                 if ( exdeclp ) {
    324                         dump( std::move( transUnit ) );
    325                         return EXIT_SUCCESS;
    326                 }
    327 
    328                 PASS( "Verify Ctor, Dtor & Assign", Validate::verifyCtorDtorAssign( transUnit ) );
    329322                PASS( "Hoist Type Decls", Validate::hoistTypeDecls( transUnit ) );
    330323                // Hoist Type Decls pulls some declarations out of contexts where
     
    333326                forceFillCodeLocations( transUnit );
    334327
     328                PASS( "Translate Exception Declarations", ControlStruct::translateExcept( transUnit ) );
     329                if ( exdeclp ) {
     330                        dump( std::move( transUnit ) );
     331                        return EXIT_SUCCESS;
     332                }
     333
     334                PASS( "Verify Ctor, Dtor & Assign", Validate::verifyCtorDtorAssign( transUnit ) );
    335335                PASS( "Replace Typedefs", Validate::replaceTypedef( transUnit ) );
    336336                PASS( "Fix Return Types", Validate::fixReturnTypes( transUnit ) );
Note: See TracChangeset for help on using the changeset viewer.