Changeset ce31925


Ignore:
Timestamp:
Sep 14, 2022, 2:14:37 PM (19 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, master, pthread-emulation
Children:
25793da
Parents:
c36814a
Message:

Removed the -O/--old-ast and -A/--new-ast flags from main. Converted old ast code is accessible by configuration, but should be considered dead code. Dead code removal to follow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    rc36814a rce31925  
    623623
    624624
    625 static const char optstring[] = ":c:ghlLmNnpdOAP:S:twW:D:";
     625static const char optstring[] = ":c:ghlLmNnpdP:S:twW:D:";
    626626
    627627enum { PreludeDir = 128 };
     
    637637        { "prototypes", no_argument, nullptr, 'p' },
    638638        { "deterministic-out", no_argument, nullptr, 'd' },
    639         { "old-ast", no_argument, nullptr, 'O'},
    640         { "new-ast", no_argument, nullptr, 'A'},
    641639        { "print", required_argument, nullptr, 'P' },
    642640        { "prelude-dir", required_argument, nullptr, PreludeDir },
     
    660658        "do not generate prelude prototypes => prelude not printed", // -p
    661659        "only print deterministic output",                  // -d
    662         "Use the old-ast",                                                                      // -O
    663         "Use the new-ast",                                                                      // -A
    664660        "print",                                                                                        // -P
    665661        "<directory> prelude directory for debug/nodebug",      // no flag
     
    770766                        deterministic_output = true;
    771767                        break;
    772                   case 'O':                                     // don't print non-deterministic output
    773                         useNewAST = false;
    774                         break;
    775                   case 'A':                                     // don't print non-deterministic output
    776                         useNewAST = true;
    777                         break;
    778768                  case 'P':                                                                             // print options
    779769                        for ( int i = 0;; i += 1 ) {
Note: See TracChangeset for help on using the changeset viewer.