Ignore:
Timestamp:
Jul 26, 2022, 11:35:02 AM (2 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, master, pthread-emulation
Children:
3992098, 7ce8873
Parents:
5cf1228
Message:

Changed the default Linkage on ast::ObjectDecl? from C to Cforall. There appears to be only one internal name that actually needed to be C.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/ExceptDeclNew.cpp

    r5cf1228 re8616b6  
    110110                "parent",
    111111                new ast::PointerType(
    112                         new ast::StructInstType( "__cfavir_type_info", ast::CV::Const ) ),
    113                 nullptr,
    114                 ast::Storage::Classes(),
    115                 ast::Linkage::Cforall
     112                        new ast::StructInstType( "__cfavir_type_info", ast::CV::Const ) )
    116113        ) );
    117114        decl->body = true;
     
    166163                location,
    167164                "__cfavir_typeid",
    168                 new ast::PointerType( typeIdType ),
    169                 nullptr,
    170                 ast::Storage::Classes(),
    171                 ast::Linkage::Cforall
     165                new ast::PointerType( typeIdType )
    172166        );
    173167        ast::ObjectDecl * size = new ast::ObjectDecl(
    174168                location,
    175169                "size",
    176                 new ast::TypeInstType( "size_t", ast::TypeDecl::Dtype ),
    177                 nullptr,
    178                 ast::Storage::Classes(),
    179                 ast::Linkage::Cforall
     170                new ast::TypeInstType( "size_t", ast::TypeDecl::Dtype )
    180171        );
    181172        ast::ObjectDecl * copy = new ast::ObjectDecl(
    182173                location,
    183174                "copy",
    184                 new ast::PointerType( createCopyFuncType( exceptionName, params ) ),
    185                 nullptr,
    186                 ast::Storage::Classes(),
    187                 ast::Linkage::Cforall
     175                new ast::PointerType( createCopyFuncType( exceptionName, params ) )
    188176        );
    189177        ast::ObjectDecl * dtor = new ast::ObjectDecl(
    190178                location,
    191179                "^?{}",
    192                 new ast::PointerType( createDtorFuncType( exceptionName, params ) ),
    193                 nullptr,
    194                 ast::Storage::Classes(),
    195                 ast::Linkage::Cforall
     180                new ast::PointerType( createDtorFuncType( exceptionName, params ) )
    196181        );
    197182        ast::ObjectDecl * msg = new ast::ObjectDecl(
    198183                location,
    199184                "msg",
    200                 new ast::PointerType( createMsgFuncType( exceptionName, params ) ),
    201                 nullptr,
    202                 ast::Storage::Classes(),
    203                 ast::Linkage::Cforall
     185                new ast::PointerType( createMsgFuncType( exceptionName, params ) )
    204186        );
    205187        ast::StructDecl * decl = new ast::StructDecl(
     
    229211                "virtual_table",
    230212                new ast::PointerType(
    231                         createVTableInstType( exceptionName, params ) ),
    232                 nullptr,
    233                 ast::Storage::Classes(),
    234                 ast::Linkage::Cforall
     213                        createVTableInstType( exceptionName, params ) )
    235214        ) );
    236215        for ( ast::ptr<ast::Decl> const & member : members ) {
     
    289268                                "this",
    290269                                new ast::PointerType(
    291                                         createExceptionInstType( exceptionName, params ) ),
    292                                 nullptr,
    293                                 ast::Storage::Classes(),
    294                                 ast::Linkage::Cforall
     270                                        createExceptionInstType( exceptionName, params ) )
    295271                        ),
    296272                        new ast::ObjectDecl(
     
    298274                                "that",
    299275                                new ast::PointerType(
    300                                         createExceptionInstType( exceptionName, params ) ),
    301                                 nullptr,
    302                                 ast::Storage::Classes(),
    303                                 ast::Linkage::Cforall
     276                                        createExceptionInstType( exceptionName, params ) )
    304277                        ),
    305278                },
    306279                {
    307                         new ast::ObjectDecl(
    308                                 location,
    309                                 "",
    310                                 new ast::VoidType(),
    311                                 nullptr,
    312                                 ast::Storage::Classes(),
    313                                 ast::Linkage::Cforall
    314                         ),
     280                        new ast::ObjectDecl( location, "", new ast::VoidType() ),
    315281                },
    316282                new ast::CompoundStmt( location, {
     
    366332                                "this",
    367333                                new ast::PointerType(
    368                                         createExceptionInstType( exceptionName, params ) ),
    369                                 nullptr,
    370                                 ast::Storage::Classes(),
    371                                 ast::Linkage::Cforall
     334                                        createExceptionInstType( exceptionName, params ) )
    372335                        ),
    373336                },
     
    377340                                "",
    378341                                new ast::PointerType(
    379                                         new ast::BasicType( ast::BasicType::Char, ast::CV::Const ) ),
    380                                 nullptr,
    381                                 ast::Storage::Classes(),
    382                                 ast::Linkage::Cforall
     342                                        new ast::BasicType( ast::BasicType::Char, ast::CV::Const ) )
    383343                        ),
    384344                },
     
    432392                tableName,
    433393                createVTableInstType( exceptionName, params ),
    434                 new ast::ListInit( location, std::move( inits ), std::move( dsigs ) ),
    435                 ast::Storage::Classes(),
    436                 ast::Linkage::Cforall
     394                new ast::ListInit( location, std::move( inits ), std::move( dsigs ) )
    437395        );
    438396}
Note: See TracChangeset for help on using the changeset viewer.