Changeset de62360d for src/ControlStruct
- Timestamp:
 - Jun 24, 2015, 4:04:19 PM (10 years ago)
 - 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:
 - 94e0864d
 - Parents:
 - a1d5d2a
 - Location:
 - src/ControlStruct
 - Files:
 - 
      
- 2 edited
 
- 
          
  LabelFixer.cc (modified) (2 diffs)
 - 
          
  LabelGenerator.cc (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
src/ControlStruct/LabelFixer.cc
ra1d5d2a rde62360d 9 9 // Author : Rodolfo G. Esteves 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Tue Jun 02 15:30:32201513 // Update Count : 9 311 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Jun 23 12:42:23 2015 13 // Update Count : 96 14 14 // 15 15 … … 137 137 Label undef = from.back()->get_target(); 138 138 throw SemanticError ( "'" + undef + "' label not defined"); 139 } 139 } // if 140 140 141 // generate a new label, and attach it to its defining statement 142 // as the only label on that statement 143 Label finalLabel = generator->newLabel(); 141 // generate a new label, and attach it to its defining statement as the only label on that statement 142 Label finalLabel = generator->newLabel( to->get_labels().back() ); 144 143 entry->set_label( finalLabel ); 145 144  - 
      
src/ControlStruct/LabelGenerator.cc
ra1d5d2a rde62360d 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jun 8 14:45:07201513 // Update Count : 1 212 // Last Modified On : Tue Jun 23 12:18:34 2015 13 // Update Count : 13 14 14 // 15 15 … … 29 29 } 30 30 31 Label LabelGenerator::newLabel( std::string suffix) {31 Label LabelGenerator::newLabel( std::string suffix ) { 32 32 std::ostringstream os; 33 33 os << "__L" << current++ << "__" << suffix;  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.