Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/Generate.cpp

    r7959e56 r9b9d3f9  
    4646                }
    4747        };
    48 
    49         struct ZeroOneObjectHider final {
    50                 ast::ObjectDecl const * postvisit( ast::ObjectDecl const * decl ) {
    51                         if ( decl->type.as<ast::ZeroType>() || decl->type.as<ast::OneType>() ) {
    52                                 ast::ObjectDecl * mutDecl = ast::mutate( decl );
    53                                 mutDecl->attributes.push_back( new ast::Attribute( "unused" ) );
    54                                 return mutDecl;
    55                         }
    56                         return decl;
    57                 }
    58         };
    5948} // namespace
    6049
     
    6352        erase_if( translationUnit.decls, shouldClean );
    6453        ast::Pass<TreeCleaner>::run( translationUnit );
    65         ast::Pass<ZeroOneObjectHider>::run( translationUnit );
    6654
    6755        ast::Pass<CodeGenerator> cgv( os,
Note: See TracChangeset for help on using the changeset viewer.