Changeset 0f8e4ac for src/SynTree


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

Location:
src/SynTree
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Statement.cc

    rf4bc57c r0f8e4ac  
    8787        Statement( labels ), originalTarget( _target ), target( _target ), computedTarget( NULL ), type( _type ) {
    8888        //actually this is a syntactic error signaled by the parser
    89         if ( type == BranchStmt::Goto && target.size() == 0 )
     89        if ( type == BranchStmt::Goto && target.empty() )
    9090                throw SemanticError("goto without target");
    9191}
  • src/SynTree/Statement.h

    rf4bc57c r0f8e4ac  
    2222#include "Common/SemanticError.h"
    2323#include "Type.h"
     24#include "Label.h"
    2425
    2526class Statement {
  • src/SynTree/SynTree.h

    rf4bc57c r0f8e4ac  
    113113class Constant;
    114114
    115 typedef std::string Label;
     115// typedef std::string Label;
     116class Label;
    116117typedef unsigned int UniqueId;
    117118
Note: See TracChangeset for help on using the changeset viewer.