Changeset 6a896b0 for src/main.cc


Ignore:
Timestamp:
Jul 18, 2022, 11:27:06 AM (14 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
Children:
efcd8f2
Parents:
847bb6f
Message:

Translated the Exception Declaration pass.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    r847bb6f r6a896b0  
    1010// Created On       : Fri May 15 23:12:02 2015
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Tue Jul 12 12:02:00 2022
    13 // Update Count     : 675
     12// Last Modified On : Mon Jul 18 11:08:00 2022
     13// Update Count     : 676
    1414//
    1515
     
    330330                Stats::Time::StopBlock();
    331331
    332                 PASS( "Translate Exception Declarations", ControlStruct::translateExcept( translationUnit ) );
    333                 if ( exdeclp ) {
    334                         dump( translationUnit );
    335                         return EXIT_SUCCESS;
    336                 } // if
    337 
    338                 CodeTools::fillLocations( translationUnit );
    339 
    340332                if( useNewAST ) {
    341                         CodeTools::fillLocations( translationUnit );
    342 
    343333                        if (Stats::Counters::enabled) {
    344334                                ast::pass_visitor_stats.avg = Stats::Counters::build<Stats::Counters::AverageCounter<double>>("Average Depth - New");
     
    348338
    349339                        forceFillCodeLocations( transUnit );
     340
     341                        PASS( "Translate Exception Declarations", ControlStruct::translateExcept( transUnit ) );
     342                        if ( exdeclp ) {
     343                                dump( move( transUnit ) );
     344                                return EXIT_SUCCESS;
     345                        }
    350346
    351347                        // Must happen before auto-gen, or anything that examines ops.
     
    473469                        translationUnit = convert( move( transUnit ) );
    474470                } else {
     471                        PASS( "Translate Exception Declarations", ControlStruct::translateExcept( translationUnit ) );
     472                        if ( exdeclp ) {
     473                                dump( translationUnit );
     474                                return EXIT_SUCCESS;
     475                        } // if
     476
    475477                        // add the assignment statement after the initialization of a type parameter
    476478                        PASS( "Validate", SymTab::validate( translationUnit ) );
Note: See TracChangeset for help on using the changeset viewer.