Changes in / [f8d05ee:7ff3e522]


Ignore:
Files:
1 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    rf8d05ee r7ff3e522  
    2424#Trasforming cc1 will break compilation
    2525M4CFA_PROGRAM_NAME
    26 
    27 #==============================================================================
    28 # New AST toggling support
    29 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}" in
    33                 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)
    3826
    3927#==============================================================================
  • src/CompilationState.cc

    rf8d05ee r7ff3e522  
    1414//
    1515
    16 #include "config.h"
    17 
    1816int
    1917        astp = false,
     
    3028        genproto = false,
    3129        deterministic_output = false,
    32         useNewAST = CFA_USE_NEW_AST,
    3330        nomainp = false,
    3431        parsep = false,
  • src/CompilationState.h

    rf8d05ee r7ff3e522  
    2929        genproto,
    3030        deterministic_output,
    31         useNewAST,
    3231        nomainp,
    3332        parsep,
  • src/config.h.in

    rf8d05ee r7ff3e522  
    2727/* Location of cfa install. */
    2828#undef CFA_PREFIX
    29 
    30 /* Sets whether or not to use the new-ast, this is adefault value and can be
    31    overrided by --old-ast and --new-ast */
    32 #undef CFA_USE_NEW_AST
    3329
    3430/* Major.Minor */
  • src/main.cc

    rf8d05ee r7ff3e522  
    340340                } // if
    341341
    342                 if( useNewAST) {
     342                // PASS( "Resolve", ResolvExpr::resolve( translationUnit ) );
     343                {
    343344                        auto transUnit = convert( move( translationUnit ) );
    344345                        PASS( "Resolve", ResolvExpr::resolve( transUnit ) );
    345346                        translationUnit = convert( move( transUnit ) );
    346                 } else {
    347                         PASS( "Resolve", ResolvExpr::resolve( translationUnit ) );
    348347                }
    349348
     
    465464        { "prototypes", no_argument, nullptr, 'p' },
    466465        { "deterministic-out", no_argument, nullptr, 'd' },
    467         { "old-ast", no_argument, nullptr, 'O'},
    468         { "new-ast", no_argument, nullptr, 'A'},
    469466        { "print", required_argument, nullptr, 'P' },
    470467        { "prelude-dir", required_argument, nullptr, PreludeDir },
     
    488485        "generate prototypes for prelude functions",            // -p
    489486        "don't print output that isn't deterministic",        // -d
    490         "Use the old-ast",                                    // -O
    491         "Use the new-ast",                                    // -A
    492487        "print",                                              // -P
    493488        "<directory> prelude directory for debug/nodebug",      // no flag
     
    595590                        break;
    596591                  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;
    604593                        break;
    605594                  case 'P':                                                                             // print options
Note: See TracChangeset for help on using the changeset viewer.