Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/ExceptDeclNew.cpp

    rc1f502c r89bef959  
    242242}
    243243
    244 ast::ObjectDecl * createExternVTable(
     244static ast::ObjectDecl * createExternVTable(
    245245                CodeLocation const & location,
    246246                std::string const & exceptionName,
     
    298298                        ),
    299299                } ),
    300                 ast::Storage::Classes(),
    301                 ast::Linkage::Cforall
     300        ast::Storage::Classes(),
     301                ast::Linkage::Cforall,
     302        { new ast::Attribute( "cfa_linkonce" ) }
    302303        );
    303304}
     
    352353                } ),
    353354                ast::Storage::Classes(),
    354                 ast::Linkage::Cforall
     355                ast::Linkage::Cforall,
     356        { new ast::Attribute( "cfa_linkonce" ) }
    355357        );
    356358}
     
    451453        std::string const & tableName = decl->name;
    452454
    453         ast::ObjectDecl * retDecl;
     455    ast::ObjectDecl * retDecl;
    454456        if ( decl->storage.is_extern ) {
    455457                // Unique type-ids are only needed for polymorphic instances.
     
    473475        }
    474476
    475         for ( ast::ptr<ast::Attribute> const & attr : decl->attributes ) {
    476                 retDecl->attributes.push_back( attr );
    477         }
    478 
    479         return retDecl;
     477    for ( ast::ptr<ast::Attribute> const & attr : decl->attributes ) {
     478        retDecl->attributes.push_back( attr );
     479    }
     480
     481    return retDecl;
    480482}
    481483
     
    483485        ast::StructInstType const * postvisit( ast::VTableType const * type ) {
    484486                auto inst = type->base.as<ast::BaseInstType>();
    485 
     487       
    486488                std::string vtableName = Virtual::vtableTypeName( inst->name );
    487489
Note: See TracChangeset for help on using the changeset viewer.