Changeset bdd516a for translator/main.cc


Ignore:
Timestamp:
Apr 28, 2015, 4:21:36 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
42e2ad7
Parents:
ad17ba6a
Message:

fixed sizeof type variable, find lowest cost alternative for sizeof expression, removed unused classes, added compiler flag, remove temporary file for -CFA, formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • translator/main.cc

    rad17ba6a rbdd516a  
    4848    bool debugp = false, treep = false, astp = false, manglep = false, symtabp = false, validp = false;
    4949    bool preludep = true, protop = false, libp = false;
    50     bool exprp = false;
     50    bool exprp = false, codegenp = false;
    5151    int c;
    5252    FILE *input, *prelude, *builtins;
     
    5555    opterr = 0;
    5656
    57     while ( (c = getopt( argc, argv, "dtsgmvxcenprlD:" )) != -1 ) {
     57    while ( (c = getopt( argc, argv, "dtsgmvxcenprlDz:" )) != -1 ) {
    5858        switch (c) {
    5959          case 'd':
     
    8989            exprp = true;
    9090            break;
     91          case 'z':
     92            codegenp = true;
     93            break;
    9194          case 'n':
    9295            /* don't read preamble */
     
    234237            return 0;
    235238        } // if
     239
     240        if ( codegenp ) {
     241            // print the tree right before code generation...
     242                        // InitTweak::mutate( translationUnit );
     243            //            InitTweak::tweak( translationUnit );
     244            //printAll( translationUnit, std::cout );
     245
     246            // std::cerr << "finished tweaking" << std::endl;
     247            SymTab::validate( translationUnit, false );
     248            ControlStruct::mutate( translationUnit );
     249            CodeGen::fixNames( translationUnit );
     250            ResolvExpr::resolve( translationUnit );
     251            GenPoly::copyParams( translationUnit );
     252            GenPoly::convertSpecializations( translationUnit );
     253            GenPoly::convertLvalue( translationUnit );
     254            GenPoly::box( translationUnit );
     255            printAll( translationUnit, std::cout );
     256            return 0;
     257        } // if
    236258
    237259        //std::cerr << "before validate" << std::endl;
Note: See TracChangeset for help on using the changeset viewer.