Changeset a77257be
- Timestamp:
- Aug 12, 2020, 11:29:03 AM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 0ea0b8f
- Parents:
- 343d10e
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CompilationState.cc
r343d10e ra77257be 28 28 genproto = false, 29 29 deterministic_output = false, 30 useNewAST = true, 30 31 nomainp = false, 31 32 parsep = false, -
src/CompilationState.h
r343d10e ra77257be 29 29 genproto, 30 30 deterministic_output, 31 useNewAST, 31 32 nomainp, 32 33 parsep, -
src/main.cc
r343d10e ra77257be 340 340 } // if 341 341 342 // PASS( "Resolve", ResolvExpr::resolve( translationUnit ) ); 343 { 342 if( useNewAST) { 344 343 auto transUnit = convert( move( translationUnit ) ); 345 344 PASS( "Resolve", ResolvExpr::resolve( transUnit ) ); 346 345 translationUnit = convert( move( transUnit ) ); 346 } else { 347 PASS( "Resolve", ResolvExpr::resolve( translationUnit ) ); 347 348 } 348 349 … … 464 465 { "prototypes", no_argument, nullptr, 'p' }, 465 466 { "deterministic-out", no_argument, nullptr, 'd' }, 467 { "old-ast", no_argument, nullptr, 'O'}, 468 { "new-ast", no_argument, nullptr, 'A'}, 466 469 { "print", required_argument, nullptr, 'P' }, 467 470 { "prelude-dir", required_argument, nullptr, PreludeDir }, … … 485 488 "generate prototypes for prelude functions", // -p 486 489 "don't print output that isn't deterministic", // -d 490 "Use the old-ast", // -O 491 "Use the new-ast", // -A 487 492 "print", // -P 488 493 "<directory> prelude directory for debug/nodebug", // no flag … … 590 595 break; 591 596 case 'd': // don't print non-deterministic output 592 deterministic_output = true; 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; 593 604 break; 594 605 case 'P': // print options
Note: See TracChangeset
for help on using the changeset viewer.