Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Virtual/Tables.cc

    raff7e86 rb583113  
    172172}
    173173
     174Attribute * linkonce( const std::string & subsection ) {
     175        const std::string section = ".gnu.linkonce." + subsection;
     176        return new Attribute( "section", {
     177                new ConstantExpr( Constant::from_string( section ) ),
     178        } );
     179}
     180
    174181ObjectDecl * makeTypeIdInstance( StructInstType const * typeIdType ) {
    175182        assert( typeIdType );
     
    186193                        new AddressExpr( new NameExpr( "__cfatid_exception_t" ) )
    187194                        ) } ),
    188                 { new Attribute( "cfa_linkonce", {} ) },
     195                { linkonce( typeid_name ) },
    189196                noFuncSpecifiers
    190197        );
Note: See TracChangeset for help on using the changeset viewer.