Changeset 2f42718 for src/ControlStruct


Ignore:
Timestamp:
Feb 22, 2019, 10:43:29 AM (5 years ago)
Author:
tdelisle <tdelisle@…>
Branches:
no_list
Parents:
43e0949
Message:

Parameters and return value of functions are now vectors (and some related clean-up)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/ExceptTranslate.cc

    r43e0949 r2f42718  
    187187                unused_index_obj->attributes.push_back( new Attribute( "unused" ) );
    188188
    189                 catch_func_t.get_parameters().push_back( index_obj.clone() );
    190                 catch_func_t.get_parameters().push_back( exception_obj.clone() );
    191                 match_func_t.get_returnVals().push_back( unused_index_obj );
    192                 match_func_t.get_parameters().push_back( exception_obj.clone() );
    193                 handle_func_t.get_returnVals().push_back( bool_obj.clone() );
    194                 handle_func_t.get_parameters().push_back( exception_obj.clone() );
    195                 finally_func_t.get_parameters().push_back( voidptr_obj.clone() );
     189                catch_func_t.parameters.push_back( index_obj.clone() );
     190                catch_func_t.parameters.push_back( exception_obj.clone() );
     191                match_func_t.returnVals.push_back( unused_index_obj );
     192                match_func_t.parameters.push_back( exception_obj.clone() );
     193                handle_func_t.returnVals.push_back( bool_obj.clone() );
     194                handle_func_t.parameters.push_back( exception_obj.clone() );
     195                finally_func_t.parameters.push_back( voidptr_obj.clone() );
    196196        }
    197197
     
    275275
    276276                FunctionType *func_type = catch_func_t.clone();
    277                 DeclarationWithType * index_obj = func_type->get_parameters().front();
    278                 DeclarationWithType * except_obj = func_type->get_parameters().back();
     277                DeclarationWithType * index_obj  = func_type->parameters.front();
     278                DeclarationWithType * except_obj = func_type->parameters.back();
    279279
    280280                // Index 1..{number of handlers}
     
    397397
    398398                FunctionType * func_type = match_func_t.clone();
    399                 DeclarationWithType * except_obj = func_type->get_parameters().back();
     399                DeclarationWithType * except_obj = func_type->parameters.back();
    400400
    401401                // Index 1..{number of handlers}
     
    451451
    452452                FunctionType * func_type = handle_func_t.clone();
    453                 DeclarationWithType * except_obj = func_type->get_parameters().back();
     453                DeclarationWithType * except_obj = func_type->parameters.back();
    454454
    455455                CatchList::iterator it;
Note: See TracChangeset for help on using the changeset viewer.