Changeset 5f2f2d7 for src/ControlStruct
- Timestamp:
- Jun 8, 2015, 8:56:35 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:
- 81419b5
- Parents:
- cd623a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/LabelGenerator.cc
rcd623a4 r5f2f2d7 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 : Wed Jun 03 14:23:26201513 // Update Count : 911 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jun 8 14:45:07 2015 13 // Update Count : 12 14 14 // 15 15 16 16 #include <iostream> 17 #include <s trstream>17 #include <sstream> 18 18 19 19 #include "LabelGenerator.h" … … 30 30 31 31 Label LabelGenerator::newLabel(std::string suffix) { 32 std::ostr stream os;32 std::ostringstream os; 33 33 os << "__L" << current++ << "__" << suffix; 34 os.freeze( false ); 35 std::string ret = std::string (os.str(), os.pcount()); 34 std::string ret = os.str(); 36 35 return Label( ret ); 37 36 }
Note: See TracChangeset
for help on using the changeset viewer.