Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/CaseRangeMutator.cc

    r4e06c1e rca35c51  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jul 12 17:35:13 2016
    13 // Update Count     : 9
     12// Last Modified On : Thu Jun 30 13:28:55 2016
     13// Update Count     : 8
    1414//
    1515
     
    2828
    2929namespace ControlStruct {
     30        Statement *CaseRangeMutator::mutate( ChooseStmt *chooseStmt ) {
     31                // There shouldn't be any `choose' statements by now, throw an exception or something.
     32                throw( 0 ) ; /* FIXME */
     33        }
     34
    3035        Statement *CaseRangeMutator::mutate( SwitchStmt *switchStmt ) {
    3136                std::list< Statement * > &cases = switchStmt->get_branches();
     
    6469
    6570                return switchStmt;
     71        }
     72
     73        Statement *CaseRangeMutator::mutate( FallthruStmt *fallthruStmt ) {
     74                //delete fallthruStmt;
     75                return new NullStmt();
    6676        }
    6777
Note: See TracChangeset for help on using the changeset viewer.