Changes in src/Virtual/Tables.cc [b583113:b91bfde]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Virtual/Tables.cc
rb583113 rb91bfde 10 10 // Created On : Mon Aug 31 11:11:00 2020 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Wed Apr 21 15:36:00 202113 // Update Count : 212 // Last Modified On : Thr Apr 8 15:51:00 2021 13 // Update Count : 1 14 14 // 15 15 … … 50 50 } 51 51 52 std::string concurrentDefaultVTableName() {53 return "_default_vtable";54 }55 56 52 bool isVTableInstanceName( std::string const & name ) { 57 53 // There are some delicate length calculations here. … … 61 57 62 58 static ObjectDecl * makeVtableDeclaration( 63 std::string const & name,64 59 StructInstType * type, Initializer * init ) { 60 std::string const & name = instanceName( type->name ); 65 61 Type::StorageClasses storage = noStorageClasses; 66 62 if ( nullptr == init ) { … … 77 73 } 78 74 79 ObjectDecl * makeVtableForward( std::string const & name,StructInstType * type ) {75 ObjectDecl * makeVtableForward( StructInstType * type ) { 80 76 assert( type ); 81 return makeVtableDeclaration( name,type, nullptr );77 return makeVtableDeclaration( type, nullptr ); 82 78 } 83 79 84 80 ObjectDecl * makeVtableInstance( 85 std::string const & name, StructInstType * vtableType, 86 Type * objectType, Initializer * init ) { 81 StructInstType * vtableType, Type * objectType, Initializer * init ) { 87 82 assert( vtableType ); 88 83 assert( objectType ); … … 120 115 assert(false); 121 116 } 122 return makeVtableDeclaration( name,vtableType, init );117 return makeVtableDeclaration( vtableType, init ); 123 118 } 124 119 … … 172 167 } 173 168 169 ObjectDecl * makeTypeIdForward() { 170 return nullptr; 171 } 172 174 173 Attribute * linkonce( const std::string & subsection ) { 175 174 const std::string section = ".gnu.linkonce." + subsection;
Note: See TracChangeset
for help on using the changeset viewer.