Changeset 8d66610 for src/Virtual
- Timestamp:
- May 21, 2021, 4:48:10 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- f1bce515
- Parents:
- 5407cdc (diff), 7404cdc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- src/Virtual
- Files:
-
- 2 edited
-
ExpandCasts.cc (modified) (2 diffs)
-
Tables.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Virtual/ExpandCasts.cc
r5407cdc r8d66610 105 105 void VirtualCastCore::premutate( FunctionDecl * functionDecl ) { 106 106 if ( (! vcast_decl) && 107 functionDecl->get_name() == "__cfa __virtual_cast" ) {107 functionDecl->get_name() == "__cfavir_virtual_cast" ) { 108 108 vcast_decl = functionDecl; 109 109 } … … 113 113 if ( pvt_decl || ! structDecl->has_body() ) { 114 114 return; 115 } else if ( structDecl->get_name() == "__cfa __parent_vtable" ) {115 } else if ( structDecl->get_name() == "__cfavir_type_info" ) { 116 116 pvt_decl = structDecl; 117 117 } -
src/Virtual/Tables.cc
r5407cdc r8d66610 172 172 } 173 173 174 Attribute * 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 181 174 ObjectDecl * makeTypeIdInstance( StructInstType const * typeIdType ) { 182 175 assert( typeIdType ); … … 193 186 new AddressExpr( new NameExpr( "__cfatid_exception_t" ) ) 194 187 ) } ), 195 { linkonce( typeid_name) },188 { new Attribute( "cfa_linkonce", {} ) }, 196 189 noFuncSpecifiers 197 190 );
Note:
See TracChangeset
for help on using the changeset viewer.