Changeset 35b1bf4 for src/main.cc


Ignore:
Timestamp:
Feb 8, 2017, 9:09:39 AM (5 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
52c14b3
Parents:
fe26fbf
Message:

added pretty print flag, which currently just turns off name mangling in code gen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    rfe26fbf r35b1bf4  
    7676        validp = false,
    7777        errorp = false,
    78         codegenp = false;
     78        codegenp = false,
     79        prettycodegenp = false;
    7980
    8081static void parse_cmdline( int argc, char *argv[], const char *& filename );
     
    309310                } // if
    310311
    311                 CodeGen::generate( translationUnit, *output, ! noprotop );
     312                CodeGen::generate( translationUnit, *output, ! noprotop, prettycodegenp );
    312313
    313314                CodeGen::FixMain::fix( *output, treep ? "../prelude/bootloader.c" : CFA_LIBDIR "/bootloader.c" );
     
    374375
    375376        int c;
    376         while ( (c = getopt_long( argc, argv, "abBcdefglmnpqrstTvyzD:F:", long_opts, &long_index )) != -1 ) {
     377        while ( (c = getopt_long( argc, argv, "abBcdefglmnpqrstTvyzZD:F:", long_opts, &long_index )) != -1 ) {
    377378                switch ( c ) {
    378379                  case Ast:
     
    450451                  case 'z':
    451452                        codegenp = true;
     453                        case 'Z':
     454                        prettycodegenp = true;
    452455                        break;
    453456                  case 'D':                                                                             // ignore -Dxxx
Note: See TracChangeset for help on using the changeset viewer.