Ignore:
Timestamp:
Jun 16, 2016, 12:24:39 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:
25296a3
Parents:
f4bc57c
Message:

change Label from a string typedef to a class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ParseNode.h

    rf4bc57c r0f8e4ac  
    2828//#include "SynTree/Declaration.h"
    2929#include "Common/UniqueName.h"
     30#include "SynTree/Label.h"
    3031
    3132class ExpressionNode;
     
    284285        virtual void printOneLine( std::ostream &, int indent = 0) const;
    285286
    286         const std::list< std::string > &get_labels() const { return labels; };
     287        const std::list< Label > &get_labels() const { return labels; };
    287288        void append_label( std::string *label ) { labels.push_back( *label ); delete label; }
    288289  private:
    289         std::list< std::string > labels;
     290        std::list< Label > labels;
    290291};
    291292
     
    524525        ExpressionNode *output, *input;
    525526        ConstantNode *clobber;
    526         std::list<std::string> gotolabels;
     527        std::list< Label > gotolabels;
    527528};
    528529
Note: See TracChangeset for help on using the changeset viewer.