Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/ExceptDeclNew.cpp

    re8616b6 r6a896b0  
    110110                "parent",
    111111                new ast::PointerType(
    112                         new ast::StructInstType( "__cfavir_type_info", ast::CV::Const ) )
     112                        new ast::StructInstType( "__cfavir_type_info", ast::CV::Const ) ),
     113                nullptr,
     114                ast::Storage::Classes(),
     115                ast::Linkage::Cforall
    113116        ) );
    114117        decl->body = true;
     
    163166                location,
    164167                "__cfavir_typeid",
    165                 new ast::PointerType( typeIdType )
     168                new ast::PointerType( typeIdType ),
     169                nullptr,
     170                ast::Storage::Classes(),
     171                ast::Linkage::Cforall
    166172        );
    167173        ast::ObjectDecl * size = new ast::ObjectDecl(
    168174                location,
    169175                "size",
    170                 new ast::TypeInstType( "size_t", ast::TypeDecl::Dtype )
     176                new ast::TypeInstType( "size_t", ast::TypeDecl::Dtype ),
     177                nullptr,
     178                ast::Storage::Classes(),
     179                ast::Linkage::Cforall
    171180        );
    172181        ast::ObjectDecl * copy = new ast::ObjectDecl(
    173182                location,
    174183                "copy",
    175                 new ast::PointerType( createCopyFuncType( exceptionName, params ) )
     184                new ast::PointerType( createCopyFuncType( exceptionName, params ) ),
     185                nullptr,
     186                ast::Storage::Classes(),
     187                ast::Linkage::Cforall
    176188        );
    177189        ast::ObjectDecl * dtor = new ast::ObjectDecl(
    178190                location,
    179191                "^?{}",
    180                 new ast::PointerType( createDtorFuncType( exceptionName, params ) )
     192                new ast::PointerType( createDtorFuncType( exceptionName, params ) ),
     193                nullptr,
     194                ast::Storage::Classes(),
     195                ast::Linkage::Cforall
    181196        );
    182197        ast::ObjectDecl * msg = new ast::ObjectDecl(
    183198                location,
    184199                "msg",
    185                 new ast::PointerType( createMsgFuncType( exceptionName, params ) )
     200                new ast::PointerType( createMsgFuncType( exceptionName, params ) ),
     201                nullptr,
     202                ast::Storage::Classes(),
     203                ast::Linkage::Cforall
    186204        );
    187205        ast::StructDecl * decl = new ast::StructDecl(
     
    211229                "virtual_table",
    212230                new ast::PointerType(
    213                         createVTableInstType( exceptionName, params ) )
     231                        createVTableInstType( exceptionName, params ) ),
     232                nullptr,
     233                ast::Storage::Classes(),
     234                ast::Linkage::Cforall
    214235        ) );
    215236        for ( ast::ptr<ast::Decl> const & member : members ) {
     
    268289                                "this",
    269290                                new ast::PointerType(
    270                                         createExceptionInstType( exceptionName, params ) )
     291                                        createExceptionInstType( exceptionName, params ) ),
     292                                nullptr,
     293                                ast::Storage::Classes(),
     294                                ast::Linkage::Cforall
    271295                        ),
    272296                        new ast::ObjectDecl(
     
    274298                                "that",
    275299                                new ast::PointerType(
    276                                         createExceptionInstType( exceptionName, params ) )
     300                                        createExceptionInstType( exceptionName, params ) ),
     301                                nullptr,
     302                                ast::Storage::Classes(),
     303                                ast::Linkage::Cforall
    277304                        ),
    278305                },
    279306                {
    280                         new ast::ObjectDecl( location, "", new ast::VoidType() ),
     307                        new ast::ObjectDecl(
     308                                location,
     309                                "",
     310                                new ast::VoidType(),
     311                                nullptr,
     312                                ast::Storage::Classes(),
     313                                ast::Linkage::Cforall
     314                        ),
    281315                },
    282316                new ast::CompoundStmt( location, {
     
    332366                                "this",
    333367                                new ast::PointerType(
    334                                         createExceptionInstType( exceptionName, params ) )
     368                                        createExceptionInstType( exceptionName, params ) ),
     369                                nullptr,
     370                                ast::Storage::Classes(),
     371                                ast::Linkage::Cforall
    335372                        ),
    336373                },
     
    340377                                "",
    341378                                new ast::PointerType(
    342                                         new ast::BasicType( ast::BasicType::Char, ast::CV::Const ) )
     379                                        new ast::BasicType( ast::BasicType::Char, ast::CV::Const ) ),
     380                                nullptr,
     381                                ast::Storage::Classes(),
     382                                ast::Linkage::Cforall
    343383                        ),
    344384                },
     
    392432                tableName,
    393433                createVTableInstType( exceptionName, params ),
    394                 new ast::ListInit( location, std::move( inits ), std::move( dsigs ) )
     434                new ast::ListInit( location, std::move( inits ), std::move( dsigs ) ),
     435                ast::Storage::Classes(),
     436                ast::Linkage::Cforall
    395437        );
    396438}
Note: See TracChangeset for help on using the changeset viewer.