Ignore:
Timestamp:
Jun 3, 2015, 3:19:29 PM (9 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, 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, string, with_gc
Children:
4162aea9
Parents:
954463b8
Message:

fix multi-level exit code (labeled break and continue)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/LabelGenerator.cc

    r954463b8 r27de955  
    99// Author           : Rodolfo G. Esteves
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue May 19 15:32:04 2015
    13 // Update Count     : 2
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Wed Jun 03 14:23:26 2015
     13// Update Count     : 9
    1414//
    1515
     
    2929        }
    3030
    31         Label LabelGenerator::newLabel() {
     31        Label LabelGenerator::newLabel(std::string suffix) {
    3232                std::ostrstream os;
    33                 os << "__L" << current++ << "__";// << std::ends;
     33                os << "__L" << current++ << "__" << suffix;
    3434                os.freeze( false );
    3535                std::string ret = std::string (os.str(), os.pcount());
Note: See TracChangeset for help on using the changeset viewer.