Ignore:
Timestamp:
Jul 12, 2016, 6:34:10 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, 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:
e4d3ceb
Parents:
6e4b913
Message:

changes for switch and choose statements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/CaseRangeMutator.cc

    r6e4b913 r4e06c1e  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Jun 30 13:28:55 2016
    13 // Update Count     : 8
     12// Last Modified On : Tue Jul 12 17:35:13 2016
     13// Update Count     : 9
    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 
    3530        Statement *CaseRangeMutator::mutate( SwitchStmt *switchStmt ) {
    3631                std::list< Statement * > &cases = switchStmt->get_branches();
     
    6964
    7065                return switchStmt;
    71         }
    72 
    73         Statement *CaseRangeMutator::mutate( FallthruStmt *fallthruStmt ) {
    74                 //delete fallthruStmt;
    75                 return new NullStmt();
    7666        }
    7767
Note: See TracChangeset for help on using the changeset viewer.