Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Virtual/Tables.cc

    rb583113 rb91bfde  
    1010// Created On       : Mon Aug 31 11:11:00 2020
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Wed Apr 21 15:36:00 2021
    13 // Update Count     : 2
     12// Last Modified On : Thr Apr  8 15:51:00 2021
     13// Update Count     : 1
    1414//
    1515
     
    5050}
    5151
    52 std::string concurrentDefaultVTableName() {
    53         return "_default_vtable";
    54 }
    55 
    5652bool isVTableInstanceName( std::string const & name ) {
    5753        // There are some delicate length calculations here.
     
    6157
    6258static ObjectDecl * makeVtableDeclaration(
    63                 std::string const & name,
    6459                StructInstType * type, Initializer * init ) {
     60        std::string const & name = instanceName( type->name );
    6561        Type::StorageClasses storage = noStorageClasses;
    6662        if ( nullptr == init ) {
     
    7773}
    7874
    79 ObjectDecl * makeVtableForward( std::string const & name, StructInstType * type ) {
     75ObjectDecl * makeVtableForward( StructInstType * type ) {
    8076        assert( type );
    81         return makeVtableDeclaration( name, type, nullptr );
     77        return makeVtableDeclaration( type, nullptr );
    8278}
    8379
    8480ObjectDecl * makeVtableInstance(
    85                 std::string const & name, StructInstType * vtableType,
    86                 Type * objectType, Initializer * init ) {
     81                StructInstType * vtableType, Type * objectType, Initializer * init ) {
    8782        assert( vtableType );
    8883        assert( objectType );
     
    120115                assert(false);
    121116        }
    122         return makeVtableDeclaration( name, vtableType, init );
     117        return makeVtableDeclaration( vtableType, init );
    123118}
    124119
     
    172167}
    173168
     169ObjectDecl * makeTypeIdForward() {
     170        return nullptr;
     171}
     172
    174173Attribute * linkonce( const std::string & subsection ) {
    175174        const std::string section = ".gnu.linkonce." + subsection;
Note: See TracChangeset for help on using the changeset viewer.