Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    r9ea38de r0e464f6  
    2929#include <string>                           // for char_traits, operator<<
    3030
    31 #include "AST/Convert.hpp"
    3231#include "CompilationState.h"
    3332#include "../config.h"                      // for CFA_LIBDIR
     
    303302                } // if
    304303
    305                 // PASS( "Resolve", ResolvExpr::resolve( translationUnit ) );
    306                 {
    307                         auto transUnit = convert( move( translationUnit ) );
    308                         PASS( "Resolve", ResolvExpr::resolve( transUnit ) );
    309                         translationUnit = convert( move( transUnit ) );
    310                 }
     304                PASS( "Resolve", ResolvExpr::resolve( translationUnit ) );
    311305                if ( exprp ) {
    312306                        dump( translationUnit );
     
    460454        const char * descript;
    461455} printopts[] = {
    462         { "altexpr", expraltp, true, "alternatives for expressions" },
    463         { "ascodegen", codegenp, true, "as codegen rather than AST" },
    464         { "ast", astp, true, "AST after parsing" },
    465         { "astdecl", validp, true, "AST after declaration validation pass" },
    466         { "asterr", errorp, true, "AST on error" },
    467         { "astexpr", exprp, true, "AST after expression analysis" },
    468         { "astgen", genericsp, true, "AST after instantiate generics" },
    469         { "box", bboxp, true, "before box step" },
    470         { "ctordtor", ctorinitp, true, "after ctor/dtor are replaced" },
    471         { "codegen", bcodegenp, true, "before code generation" },
     456        { "ascodegen", codegenp, true, "print AST as codegen rather than AST" },
     457        { "asterr", errorp, true, "print AST on error" },
    472458        { "declstats", declstatsp, true, "code property statistics" },
    473459        { "parse", yydebug, true, "yacc (parsing) debug information" },
    474460        { "pretty", prettycodegenp, true, "prettyprint for ascodegen flag" },
    475         { "resolver", bresolvep, true, "before resolver step" },
    476461        { "rproto", resolvprotop, true, "resolver-proto instance" },
    477         { "rsteps", resolvep, true, "resolver steps" },
    478         { "symevt", symtabp, true, "symbol table events" },
    479         { "tree", parsep, true, "parse tree" },
    480         { "tuple", tuplep, true, "after tuple expansion" },
     462        { "rsteps", resolvep, true, "print resolver steps" },
     463        { "tree", parsep, true, "print parse tree" },
     464        // code dumps
     465        { "ast", astp, true, "print AST after parsing" },
     466        { "symevt", symtabp, true, "print AST after symbol table events" },
     467        { "altexpr", expraltp, true, "print alternatives for expressions" },
     468        { "astdecl", validp, true, "print AST after declaration validation pass" },
     469        { "resolver", bresolvep, true, "print AST before resolver step" },
     470        { "astexpr", exprp, true, "print AST after expression analysis" },
     471        { "ctordtor", ctorinitp, true, "print AST after ctor/dtor are replaced" },
     472        { "tuple", tuplep, true, "print AST after tuple expansion" },
     473        { "astgen", genericsp, true, "print AST after instantiate generics" },
     474        { "box", bboxp, true, "print AST before box step" },
     475        { "codegen", bcodegenp, true, "print AST before code generation" },
    481476};
    482477enum { printoptsSize = sizeof( printopts ) / sizeof( printopts[0] ) };
Note: See TracChangeset for help on using the changeset viewer.