Changeset 5ee153d


Ignore:
Timestamp:
Nov 8, 2021, 4:53:02 PM (8 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
enum, forall-pointer-decay, master
Children:
cc28780
Parents:
a5a08a05
Message:

Translated the Translate Throws pass to the new ast.

Location:
src
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/ExceptTranslate.cc

    ra5a08a05 r5ee153d  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // ExceptVisitor.cc --
     7// ExceptTranslate.cc -- Conversion of exception control flow structures.
    88//
    99// Author           : Andrew Beach
  • src/ControlStruct/ExceptTranslate.h

    ra5a08a05 r5ee153d  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // ExceptTranslate.h --
     7// ExceptTranslate.h -- Conversion of exception control flow structures.
    88//
    99// Author           : Andrew Beach
    1010// Created On       : Tus Jun 06 10:13:00 2017
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Tus May 19 11:47:00 2020
    13 // Update Count     : 5
     12// Last Modified On : Mon Nov  8 11:43:00 2020
     13// Update Count     : 6
    1414//
    1515
     
    1919
    2020class Declaration;
     21namespace ast {
     22        class TranslationUnit;
     23}
    2124
    2225namespace ControlStruct {
    2326        void translateThrows( std::list< Declaration *> & translationUnit );
     27        void translateThrows( ast::TranslationUnit & transUnit );
    2428        /* Replaces all throw & throwResume statements with function calls.
    2529         * These still need to be resolved, so call this before the reslover.
  • src/ControlStruct/module.mk

    ra5a08a05 r5ee153d  
    3333        ControlStruct/Mutate.h
    3434
    35 SRC += $(SRC_CONTROLSTRUCT) ControlStruct/ExceptTranslate.cc ControlStruct/ExceptTranslate.h
     35SRC += $(SRC_CONTROLSTRUCT) \
     36        ControlStruct/ExceptTranslateNew.cpp \
     37        ControlStruct/ExceptTranslate.cc \
     38        ControlStruct/ExceptTranslate.h
     39
    3640SRCDEMANGLE += $(SRC_CONTROLSTRUCT)
    3741
  • src/main.cc

    ra5a08a05 r5ee153d  
    1010// Created On       : Fri May 15 23:12:02 2015
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Fri Oct 29 16:34:00 2021
    13 // Update Count     : 655
     12// Last Modified On : Mon Nov  8 11:42:00 2021
     13// Update Count     : 656
    1414//
    1515
     
    334334                } // if
    335335
    336                 PASS( "Translate Throws", ControlStruct::translateThrows( translationUnit ) );
    337 
    338336                CodeTools::fillLocations( translationUnit );
    339337
     
    347345                        forceFillCodeLocations( transUnit );
    348346
     347                        PASS( "Translate Throws", ControlStruct::translateThrows( transUnit ) );
    349348                        PASS( "Fix Labels", ControlStruct::fixLabels( transUnit ) );
    350349                        PASS( "Fix Names", CodeGen::fixNames( transUnit ) );
     
    384383                        translationUnit = convert( move( transUnit ) );
    385384                } else {
     385                        PASS( "Translate Throws", ControlStruct::translateThrows( translationUnit ) );
    386386                        PASS( "Fix Labels", ControlStruct::fixLabels( translationUnit ) );
    387387                        PASS( "Fix Names", CodeGen::fixNames( translationUnit ) );
Note: See TracChangeset for help on using the changeset viewer.