Changes in / [f8d05ee:7ff3e522]
- Files:
-
- 1 added
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
rf8d05ee r7ff3e522 24 24 #Trasforming cc1 will break compilation 25 25 M4CFA_PROGRAM_NAME 26 27 #==============================================================================28 # New AST toggling support29 AH_TEMPLATE([CFA_USE_NEW_AST],[Sets whether or not to use the new-ast, this is adefault value and can be overrided by --old-ast and --new-ast])30 AC_ARG_ENABLE(new-ast,31 [ --enable-new-ast whether or not to use new ast as the default AST algorithm],32 [case "${enableval}" in33 yes) newast=true ;;34 no) newast=false ;;35 *) AC_MSG_ERROR([bad value ${enableval} for --enable-new-ast]) ;;36 esac],[newast=false])37 AC_DEFINE_UNQUOTED([CFA_USE_NEW_AST], $newast)38 26 39 27 #============================================================================== -
src/CompilationState.cc
rf8d05ee r7ff3e522 14 14 // 15 15 16 #include "config.h"17 18 16 int 19 17 astp = false, … … 30 28 genproto = false, 31 29 deterministic_output = false, 32 useNewAST = CFA_USE_NEW_AST,33 30 nomainp = false, 34 31 parsep = false, -
src/CompilationState.h
rf8d05ee r7ff3e522 29 29 genproto, 30 30 deterministic_output, 31 useNewAST,32 31 nomainp, 33 32 parsep, -
src/config.h.in
rf8d05ee r7ff3e522 27 27 /* Location of cfa install. */ 28 28 #undef CFA_PREFIX 29 30 /* Sets whether or not to use the new-ast, this is adefault value and can be31 overrided by --old-ast and --new-ast */32 #undef CFA_USE_NEW_AST33 29 34 30 /* Major.Minor */ -
src/main.cc
rf8d05ee r7ff3e522 340 340 } // if 341 341 342 if( useNewAST) { 342 // PASS( "Resolve", ResolvExpr::resolve( translationUnit ) ); 343 { 343 344 auto transUnit = convert( move( translationUnit ) ); 344 345 PASS( "Resolve", ResolvExpr::resolve( transUnit ) ); 345 346 translationUnit = convert( move( transUnit ) ); 346 } else {347 PASS( "Resolve", ResolvExpr::resolve( translationUnit ) );348 347 } 349 348 … … 465 464 { "prototypes", no_argument, nullptr, 'p' }, 466 465 { "deterministic-out", no_argument, nullptr, 'd' }, 467 { "old-ast", no_argument, nullptr, 'O'},468 { "new-ast", no_argument, nullptr, 'A'},469 466 { "print", required_argument, nullptr, 'P' }, 470 467 { "prelude-dir", required_argument, nullptr, PreludeDir }, … … 488 485 "generate prototypes for prelude functions", // -p 489 486 "don't print output that isn't deterministic", // -d 490 "Use the old-ast", // -O491 "Use the new-ast", // -A492 487 "print", // -P 493 488 "<directory> prelude directory for debug/nodebug", // no flag … … 595 590 break; 596 591 case 'd': // don't print non-deterministic output 597 deterministic_output = true; 598 break; 599 case 'O': // don't print non-deterministic output 600 useNewAST = false; 601 break; 602 case 'A': // don't print non-deterministic output 603 useNewAST = true; 592 deterministic_output = true; 604 593 break; 605 594 case 'P': // print options
Note: See TracChangeset
for help on using the changeset viewer.