Ignore:
Timestamp:
Nov 13, 2023, 1:40:12 PM (6 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
6ea85b22
Parents:
25f2798
Message:

Removed forward declarations missed in the BaseSyntaxNode? removal. Removed code and modified names to support two versions of the ast.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/Generate.cc

    r25f2798 r0bd3faf  
    1919#include <string>                    // for operator<<
    2020
    21 #include "CodeGeneratorNew.hpp"      // for CodeGenerator_new, doSemicolon, ...
     21#include "CodeGeneratorNew.hpp"      // for CodeGenerator, doSemicolon, ...
    2222#include "GenType.h"                 // for genPrettyType
    2323
     
    3232
    3333        /// Removes various nodes that should not exist in CodeGen.
    34         struct TreeCleaner_new {
     34        struct TreeCleaner final {
    3535                ast::CompoundStmt const * previsit( ast::CompoundStmt const * stmt ) {
    3636                        auto mutStmt = ast::mutate( stmt );
     
    5151                bool pretty, bool generateC, bool lineMarks, bool printExprTypes ) {
    5252        erase_if( translationUnit.decls, shouldClean );
    53         ast::Pass<TreeCleaner_new>::run( translationUnit );
     53        ast::Pass<TreeCleaner>::run( translationUnit );
    5454
    55         ast::Pass<CodeGenerator_new> cgv( os,
     55        ast::Pass<CodeGenerator> cgv( os,
    5656                        Options( pretty, generateC, lineMarks, printExprTypes ) );
    5757        for ( auto & decl : translationUnit.decls ) {
Note: See TracChangeset for help on using the changeset viewer.