Ignore:
Timestamp:
Jun 28, 2016, 3:17:26 PM (8 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, with_gc
Children:
e39aa0f
Parents:
4d3ca1d8
Message:

generated labels contain unused attribute and fixed label code gen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/LabelGenerator.cc

    r4d3ca1d8 r888cbe4  
    1919#include "LabelGenerator.h"
    2020#include "SynTree/Label.h"
     21#include "SynTree/Attribute.h"
    2122
    2223namespace ControlStruct {
     
    3435                os << "__L" << current++ << "__" << suffix;
    3536                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;
    3740        }
    3841} // namespace ControlStruct
Note: See TracChangeset for help on using the changeset viewer.