Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/ExceptDeclNew.cpp

    r89bef959 rc1f502c  
    242242}
    243243
    244 static ast::ObjectDecl * createExternVTable(
     244ast::ObjectDecl * createExternVTable(
    245245                CodeLocation const & location,
    246246                std::string const & exceptionName,
     
    298298                        ),
    299299                } ),
    300         ast::Storage::Classes(),
    301                 ast::Linkage::Cforall,
    302         { new ast::Attribute( "cfa_linkonce" ) }
     300                ast::Storage::Classes(),
     301                ast::Linkage::Cforall
    303302        );
    304303}
     
    353352                } ),
    354353                ast::Storage::Classes(),
    355                 ast::Linkage::Cforall,
    356         { new ast::Attribute( "cfa_linkonce" ) }
     354                ast::Linkage::Cforall
    357355        );
    358356}
     
    453451        std::string const & tableName = decl->name;
    454452
    455     ast::ObjectDecl * retDecl;
     453        ast::ObjectDecl * retDecl;
    456454        if ( decl->storage.is_extern ) {
    457455                // Unique type-ids are only needed for polymorphic instances.
     
    475473        }
    476474
    477     for ( ast::ptr<ast::Attribute> const & attr : decl->attributes ) {
    478         retDecl->attributes.push_back( attr );
    479     }
    480 
    481     return retDecl;
     475        for ( ast::ptr<ast::Attribute> const & attr : decl->attributes ) {
     476                retDecl->attributes.push_back( attr );
     477        }
     478
     479        return retDecl;
    482480}
    483481
     
    485483        ast::StructInstType const * postvisit( ast::VTableType const * type ) {
    486484                auto inst = type->base.as<ast::BaseInstType>();
    487        
     485
    488486                std::string vtableName = Virtual::vtableTypeName( inst->name );
    489487
Note: See TracChangeset for help on using the changeset viewer.