Changes in src/main.cc [0e464f6:9ea38de]
- File:
-
- 1 edited
-
src/main.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
r0e464f6 r9ea38de 29 29 #include <string> // for char_traits, operator<< 30 30 31 #include "AST/Convert.hpp" 31 32 #include "CompilationState.h" 32 33 #include "../config.h" // for CFA_LIBDIR … … 302 303 } // if 303 304 304 PASS( "Resolve", ResolvExpr::resolve( translationUnit ) ); 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 } 305 311 if ( exprp ) { 306 312 dump( translationUnit ); … … 454 460 const char * descript; 455 461 } printopts[] = { 456 { "ascodegen", codegenp, true, "print AST as codegen rather than AST" }, 457 { "asterr", errorp, true, "print AST on error" }, 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" }, 458 472 { "declstats", declstatsp, true, "code property statistics" }, 459 473 { "parse", yydebug, true, "yacc (parsing) debug information" }, 460 474 { "pretty", prettycodegenp, true, "prettyprint for ascodegen flag" }, 475 { "resolver", bresolvep, true, "before resolver step" }, 461 476 { "rproto", resolvprotop, true, "resolver-proto instance" }, 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" }, 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" }, 476 481 }; 477 482 enum { printoptsSize = sizeof( printopts ) / sizeof( printopts[0] ) };
Note:
See TracChangeset
for help on using the changeset viewer.