Changeset 7119daa


Ignore:
Timestamp:
May 22, 2020, 2:49:54 PM (17 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast, new-ast-unique-expr
Children:
f4530d7
Parents:
99fea48
Message:

More clean-up in ExceptTranslate?.

Location:
src/ControlStruct
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/ExceptTranslate.cc

    r99fea48 r7119daa  
    107107                        nameOf( terminate_handler_except ),
    108108                        new ConstantExpr( Constant::null(
    109                                 //new PointerType(
    110                                 //      noQualifiers,
    111                                         terminate_handler_except->get_type()->clone()
    112                                 //      )
     109                                terminate_handler_except->get_type()->clone()
    113110                                ) )
    114111                        ) ) );
     
    232229
    233230                void premutate( StructDecl *structDecl );
    234                 Statement * postmutate( ThrowStmt *throwStmt );
    235231                Statement * postmutate( TryStmt *tryStmt );
    236232        };
     
    621617        }
    622618
    623         Statement * TryMutatorCore::postmutate( ThrowStmt * ) {
    624                 // All throws should be removed by this point.
    625                 assert( false );
    626         }
    627 
    628619        Statement * TryMutatorCore::postmutate( TryStmt *tryStmt ) {
    629620                assert( except_decl );
  • src/ControlStruct/ExceptTranslate.h

    r99fea48 r7119daa  
    2929        /* Replaces all try blocks (and their many clauses) with function definitions and calls.
    3030         * This uses the exception built-ins to produce typed output and should take place after
    31          * the resolver.
     31         * the resolver. It also produces virtual casts and should happen before they are expanded.
    3232         */
    3333}
Note: See TracChangeset for help on using the changeset viewer.