Changes in / [86c934a:7d94d805]


Ignore:
Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/Lvalue.cc

    r86c934a r7d94d805  
    465465                                        return ret;
    466466                                }
    467                         } else if ( CastExpr * castExpr = dynamic_cast< CastExpr * > ( arg ) ) {
    468                                 // need to move cast to pointer type out a level since address of pointer
    469                                 // is not valid C code (can be introduced in prior passes, e.g., InstantiateGeneric)
    470                                 if ( InitTweak::getPointerBase( castExpr->result ) ) {
    471                                         addrExpr->arg = castExpr->arg;
    472                                         castExpr->arg = addrExpr;
    473                                         castExpr->result = new PointerType( Type::Qualifiers(), castExpr->result );
    474                                         return castExpr;
    475                                 }
    476467                        }
    477468                        return addrExpr;
  • src/main.cc

    r86c934a r7d94d805  
    8080        exprp = false,
    8181        expraltp = false,
    82         genericsp = false,
    8382        libcfap = false,
    8483        nopreludep = false,
     
    321320                OPTPRINT("instantiateGenerics")
    322321                GenPoly::instantiateGeneric( translationUnit );
    323                 if ( genericsp ) {
    324                         dump( translationUnit );
    325                         return 0;
    326                 }
    327322                OPTPRINT( "convertLvalue" )
    328323                GenPoly::convertLvalue( translationUnit );
    329324
    330 
    331325                if ( bboxp ) {
    332326                        dump( translationUnit );
     
    346340
    347341                CodeTools::fillLocations( translationUnit );
    348                 OPTPRINT( "codegen" )
    349342                CodeGen::generate( translationUnit, *output, ! noprotop, prettycodegenp, true, linemarks );
    350343
    351344                CodeGen::FixMain::fix( *output, treep ? "../prelude/bootloader.c" : CFA_LIBDIR "/bootloader.c" );
    352                 OPTPRINT( "end" )
    353345
    354346                if ( output != &cout ) {
     
    415407
    416408        int c;
    417         while ( (c = getopt_long( argc, argv, "abBcCdefgGlLmnNpqrstTvyzZD:F:", long_opts, &long_index )) != -1 ) {
     409        while ( (c = getopt_long( argc, argv, "abBcCdefglLmnNpqrstTvyzZD:F:", long_opts, &long_index )) != -1 ) {
    418410                switch ( c ) {
    419411                  case Ast:
     
    450442                  case 'g':                                                                             // bison debugging info (grammar rules)
    451443                        yydebug = true;
    452                         break;
    453                   case 'G':                   // dump AST after instantiate generics
    454                         genericsp = true;
    455444                        break;
    456445                  case LibCFA:
Note: See TracChangeset for help on using the changeset viewer.