Changeset 5da9d6a for src/ControlStruct


Ignore:
Timestamp:
Dec 1, 2017, 11:58:32 AM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
3ca540f, 86ad276
Parents:
d16d159 (diff), 3d560060 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:/u/cforall/software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/ExceptTranslate.cc

    rd16d159 r5da9d6a  
    211211                        ThrowStmt *throwStmt ) {
    212212                // __throw_terminate( `throwStmt->get_name()` ); }
    213                 return create_given_throw( "__cfaehm__throw_terminate", throwStmt );
     213                return create_given_throw( "__cfaabi_ehm__throw_terminate", throwStmt );
    214214        }
    215215
     
    232232                        ) ) );
    233233                result->push_back( new ExprStmt(
    234                         new UntypedExpr( new NameExpr( "__cfaehm__rethrow_terminate" ) )
     234                        new UntypedExpr( new NameExpr( "__cfaabi_ehm__rethrow_terminate" ) )
    235235                        ) );
    236236                delete throwStmt;
     
    241241                        ThrowStmt *throwStmt ) {
    242242                // __throw_resume( `throwStmt->get_name` );
    243                 return create_given_throw( "__cfaehm__throw_resume", throwStmt );
     243                return create_given_throw( "__cfaabi_ehm__throw_resume", throwStmt );
    244244        }
    245245
     
    309309                        local_except->get_attributes().push_back( new Attribute(
    310310                                "cleanup",
    311                                 { new NameExpr( "__cfaehm__cleanup_terminate" ) }
     311                                { new NameExpr( "__cfaabi_ehm__cleanup_terminate" ) }
    312312                                ) );
    313313
     
    430430                        FunctionDecl * terminate_catch,
    431431                        FunctionDecl * terminate_match ) {
    432                 // { __cfaehm__try_terminate(`try`, `catch`, `match`); }
     432                // { __cfaabi_ehm__try_terminate(`try`, `catch`, `match`); }
    433433
    434434                UntypedExpr * caller = new UntypedExpr( new NameExpr(
    435                         "__cfaehm__try_terminate" ) );
     435                        "__cfaabi_ehm__try_terminate" ) );
    436436                std::list<Expression *>& args = caller->get_args();
    437437                args.push_back( nameOf( try_wrapper ) );
     
    487487
    488488                // struct __try_resume_node __resume_node
    489                 //      __attribute__((cleanup( __cfaehm__try_resume_cleanup )));
     489                //      __attribute__((cleanup( __cfaabi_ehm__try_resume_cleanup )));
    490490                // ** unwinding of the stack here could cause problems **
    491491                // ** however I don't think that can happen currently **
    492                 // __cfaehm__try_resume_setup( &__resume_node, resume_handler );
     492                // __cfaabi_ehm__try_resume_setup( &__resume_node, resume_handler );
    493493
    494494                std::list< Attribute * > attributes;
     
    496496                        std::list< Expression * > attr_params;
    497497                        attr_params.push_back( new NameExpr(
    498                                 "__cfaehm__try_resume_cleanup" ) );
     498                                "__cfaabi_ehm__try_resume_cleanup" ) );
    499499                        attributes.push_back( new Attribute( "cleanup", attr_params ) );
    500500                }
     
    515515
    516516                UntypedExpr *setup = new UntypedExpr( new NameExpr(
    517                         "__cfaehm__try_resume_setup" ) );
     517                        "__cfaabi_ehm__try_resume_setup" ) );
    518518                setup->get_args().push_back( new AddressExpr( nameOf( obj ) ) );
    519519                setup->get_args().push_back( nameOf( resume_handler ) );
     
    540540        ObjectDecl * ExceptionMutatorCore::create_finally_hook(
    541541                        FunctionDecl * finally_wrapper ) {
    542                 // struct __cfaehm__cleanup_hook __finally_hook
     542                // struct __cfaabi_ehm__cleanup_hook __finally_hook
    543543                //      __attribute__((cleanup( finally_wrapper )));
    544544
     
    594594                        // Skip children?
    595595                        return;
    596                 } else if ( structDecl->get_name() == "__cfaehm__base_exception_t" ) {
     596                } else if ( structDecl->get_name() == "__cfaabi_ehm__base_exception_t" ) {
    597597                        assert( nullptr == except_decl );
    598598                        except_decl = structDecl;
    599599                        init_func_types();
    600                 } else if ( structDecl->get_name() == "__cfaehm__try_resume_node" ) {
     600                } else if ( structDecl->get_name() == "__cfaabi_ehm__try_resume_node" ) {
    601601                        assert( nullptr == node_decl );
    602602                        node_decl = structDecl;
    603                 } else if ( structDecl->get_name() == "__cfaehm__cleanup_hook" ) {
     603                } else if ( structDecl->get_name() == "__cfaabi_ehm__cleanup_hook" ) {
    604604                        assert( nullptr == hook_decl );
    605605                        hook_decl = structDecl;
Note: See TracChangeset for help on using the changeset viewer.