- File:
-
- 1 edited
-
src/CodeGen/CodeGeneratorNew.hpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGeneratorNew.hpp
r0bd3faf r6e7ed0aa 25 25 namespace CodeGen { 26 26 27 struct CodeGenerator final : 27 #warning Remove the _new when old version is removed. 28 struct CodeGenerator_new : 28 29 public ast::WithGuards, 29 30 public ast::WithShortCircuiting, 30 public ast::WithVisitorRef<CodeGenerator > {31 CodeGenerator ( std::ostream & out, Options const & options );31 public ast::WithVisitorRef<CodeGenerator_new> { 32 CodeGenerator_new( std::ostream & out, Options const & options ); 32 33 33 34 // Turn off visit_children for all nodes. … … 118 119 /// Custom local implementation of endl that updates print location. 119 120 struct LineEnder { 120 CodeGenerator & cg;121 LineEnder( CodeGenerator & cg ) : cg( cg ) {}121 CodeGenerator_new & cg; 122 LineEnder( CodeGenerator_new & cg ) : cg( cg ) {} 122 123 std::ostream & operator()( std::ostream & ) const; 123 124 }; … … 128 129 /// Wrapper class to help print vectors of Labels. 129 130 struct LabelPrinter { 130 LabelPrinter( CodeGenerator & cg ) : cg( cg ), labels( nullptr ) {}131 LabelPrinter( CodeGenerator_new & cg ) : cg( cg ), labels( nullptr ) {} 131 132 LabelPrinter & operator()( std::vector<ast::Label> const & l ); 132 133 std::ostream & operator()( std::ostream & ) const; 133 CodeGenerator & cg;134 CodeGenerator_new & cg; 134 135 std::vector<ast::Label> const * labels; 135 136 };
Note:
See TracChangeset
for help on using the changeset viewer.