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