Ignore:
Timestamp:
Jun 4, 2015, 3:13:53 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, string, with_gc
Children:
bb86117
Parents:
9a8930f
Message:

removed carriage returns from code generation and some duplicate label printing, more MLE documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/MLEMutator.cc

    r9a8930f reb3261f  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Wed Jun 03 15:09:27 2015
    13 // Update Count     : 170
     12// Last Modified On : Thu Jun 04 15:12:33 2015
     13// Update Count     : 173
    1414//
    1515
     
    5252                bool labeledBlock = !(cmpndStmt->get_labels().empty());
    5353                if ( labeledBlock ) {
    54                         Label brkLabel = generator->newLabel();
     54                        Label brkLabel = generator->newLabel("blockBreak");
    5555                        enclosingBlocks.push_back( Entry( cmpndStmt, brkLabel ) );
    5656                } // if
     
    7575        Statement *MLEMutator::handleLoopStmt( LoopClass *loopStmt ) {
    7676                // remember this as the most recent enclosing loop, then mutate
    77                 // the body of the loop -- this will do SOMETHING with branch statements
     77                // the body of the loop -- this will determine whether brkLabel
     78                // and contLabel are used with branch statements
    7879                // and will recursively do the same to nested loops
    7980                Label brkLabel = generator->newLabel("loopBreak");
     
    8687                assert ( e == loopStmt );
    8788
    88                 // generate labels as needed
     89                // this will take the necessary steps to add definitions of the previous
     90                // two labels, if they are used.
    8991                loopStmt->set_body( mutateLoop( loopStmt->get_body(), e ) );
    9092                enclosingLoops.pop_back();
Note: See TracChangeset for help on using the changeset viewer.