Changeset 888cbe4 for src/ControlStruct/LabelGenerator.cc
- Timestamp:
- Jun 28, 2016, 3:17:26 PM (9 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, with_gc
- Children:
- e39aa0f
- Parents:
- 4d3ca1d8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/LabelGenerator.cc
r4d3ca1d8 r888cbe4 19 19 #include "LabelGenerator.h" 20 20 #include "SynTree/Label.h" 21 #include "SynTree/Attribute.h" 21 22 22 23 namespace ControlStruct { … … 34 35 os << "__L" << current++ << "__" << suffix; 35 36 std::string ret = os.str(); 36 return Label( ret ); 37 Label l( ret ); 38 l.get_attributes().push_back( new Attribute("unused") ); 39 return l; 37 40 } 38 41 } // namespace ControlStruct
Note: See TracChangeset
for help on using the changeset viewer.