Changeset 8d7bef2 for src/SynTree


Ignore:
Timestamp:
Mar 20, 2018, 5:12:25 PM (8 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env, with_gc
Children:
7e4b44db
Parents:
68f9c43
Message:

First compiling build of CFA-CC with GC

Location:
src/SynTree
Files:
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/ApplicationExpr.cc

    r68f9c43 r8d7bef2  
    1717#include <list>                  // for list
    1818#include <map>                   // for _Rb_tree_const_iterator, map, map<>:...
    19 #include <memory>                // for unique_ptr
    2019#include <ostream>               // for operator<<, ostream, basic_ostream
    2120#include <string>                // for operator<<, string, char_traits
  • src/SynTree/BaseSyntaxNode.h

    r68f9c43 r8d7bef2  
    2424
    2525class BaseSyntaxNode : GC_Object {
     26  friend class GcTracer;
    2627public:
    2728        CodeLocation location;
  • src/SynTree/GcTracer.h

    r68f9c43 r8d7bef2  
    5252static inline const GC& operator<< ( const GC& gc, const std::list<Declaration*>& translationUnit ) {
    5353        PassVisitor<GcTracer> tracer{ gc };
    54         acceptAll( translationUnit, tracer );
     54        acceptAll( const_cast<std::list<Declaration*>&>( translationUnit ), tracer );
    5555        return gc;
    5656}
  • src/SynTree/TypeSubstitution.h

    r68f9c43 r8d7bef2  
    5959        void normalize();
    6060
     61        void accept( Visitor& v ) { v.visit( this ); }
    6162        TypeSubstitution * acceptMutator( Mutator & m ) { return m.mutate( this ); }
    6263
  • src/SynTree/Visitor.h

    r68f9c43 r8d7bef2  
    121121
    122122        virtual void visit( Attribute * attribute ) = 0;
     123
     124        virtual void visit( TypeSubstitution * sub ) = 0;
    123125};
    124126
  • src/SynTree/module.mk

    r68f9c43 r8d7bef2  
    4848       SynTree/TypeSubstitution.cc \
    4949       SynTree/Attribute.cc \
    50        SynTree/GcTracer.cc \
    5150       SynTree/VarExprReplacer.cc
    5251
Note: See TracChangeset for help on using the changeset viewer.