Changeset 982d63f


Ignore:
Timestamp:
Jun 28, 2016, 4:02:00 PM (6 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, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
4b2589a
Parents:
4dcea3f
Message:

replace choose with switch before MLE mutator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/Mutate.cc

    r4dcea3f r982d63f  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // Mutate.cc -- 
     7// Mutate.cc --
    88//
    99// Author           : Rodolfo G. Esteves
     
    3939                ForExprMutator formut;
    4040
     41                // transform choose statements into switch statements
     42                ChooseMutator chmut;
     43
    4144                // normalizes label definitions and generates multi-level
    4245                // exit labels
    4346                LabelFixer lfix;
    44 
    45                 // transform choose statements into switch statements
    46                 ChooseMutator chmut;
    4747
    4848                // expand case ranges and turn fallthru into a null statement
     
    5353
    5454                mutateAll( translationUnit, formut );
     55                mutateAll( translationUnit, chmut );
    5556                acceptAll( translationUnit, lfix );
    56                 mutateAll( translationUnit, chmut );
    5757                mutateAll( translationUnit, ranges );
    5858                //mutateAll( translationUnit, exc );
Note: See TracChangeset for help on using the changeset viewer.