Ignore:
Timestamp:
Nov 8, 2021, 10:51:48 AM (3 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
cb921d4
Parents:
817bb3c
Message:

Converted the two LabelGenerator? singletons into a single pure-static class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/MultiLevelExit.cpp

    r817bb3c rde31a1d  
    105105                public ast::WithVisitorRef<MultiLevelExitCore>,
    106106                public ast::WithShortCircuiting, public ast::WithGuards {
    107         MultiLevelExitCore( const LabelToStmt & lt, LabelGenerator_new * lg );
     107        MultiLevelExitCore( const LabelToStmt & lt, LabelGenerator * lg );
    108108
    109109        void previsit( const ast::FunctionDecl * );
     
    131131        std::vector<Entry> enclosing_control_structures;
    132132        ast::Label break_label;
    133         LabelGenerator_new * label_gen;
     133        LabelGenerator * label_gen;
    134134        bool inFinally;
    135135
     
    155155
    156156MultiLevelExitCore::MultiLevelExitCore(
    157                 const LabelToStmt & lt, LabelGenerator_new * lg ) :
     157                const LabelToStmt & lt, LabelGenerator * lg ) :
    158158        target_table( lt ), break_label( CodeLocation(), "" ), label_gen( lg ),
    159159        inFinally( false )
     
    608608        const ast::CompoundStmt * stmt,
    609609                const LabelToStmt & labelTable,
    610                 LabelGenerator_new * labelGen ) {
     610                LabelGenerator * labelGen ) {
    611611        // Must start in the body, so FunctionDecls can be a stopping point.
    612612        ast::Pass<MultiLevelExitCore> visitor( labelTable, labelGen );
Note: See TracChangeset for help on using the changeset viewer.