Changeset e8616b6 for src/ControlStruct
- Timestamp:
- Jul 26, 2022, 11:35:02 AM (3 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation
- Children:
- 3992098, 7ce8873
- Parents:
- 5cf1228
- Location:
- src/ControlStruct
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/ControlStruct/ExceptDeclNew.cpp ¶
r5cf1228 re8616b6 110 110 "parent", 111 111 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 ) ) 116 113 ) ); 117 114 decl->body = true; … … 166 163 location, 167 164 "__cfavir_typeid", 168 new ast::PointerType( typeIdType ), 169 nullptr, 170 ast::Storage::Classes(), 171 ast::Linkage::Cforall 165 new ast::PointerType( typeIdType ) 172 166 ); 173 167 ast::ObjectDecl * size = new ast::ObjectDecl( 174 168 location, 175 169 "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 ) 180 171 ); 181 172 ast::ObjectDecl * copy = new ast::ObjectDecl( 182 173 location, 183 174 "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 ) ) 188 176 ); 189 177 ast::ObjectDecl * dtor = new ast::ObjectDecl( 190 178 location, 191 179 "^?{}", 192 new ast::PointerType( createDtorFuncType( exceptionName, params ) ), 193 nullptr, 194 ast::Storage::Classes(), 195 ast::Linkage::Cforall 180 new ast::PointerType( createDtorFuncType( exceptionName, params ) ) 196 181 ); 197 182 ast::ObjectDecl * msg = new ast::ObjectDecl( 198 183 location, 199 184 "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 ) ) 204 186 ); 205 187 ast::StructDecl * decl = new ast::StructDecl( … … 229 211 "virtual_table", 230 212 new ast::PointerType( 231 createVTableInstType( exceptionName, params ) ), 232 nullptr, 233 ast::Storage::Classes(), 234 ast::Linkage::Cforall 213 createVTableInstType( exceptionName, params ) ) 235 214 ) ); 236 215 for ( ast::ptr<ast::Decl> const & member : members ) { … … 289 268 "this", 290 269 new ast::PointerType( 291 createExceptionInstType( exceptionName, params ) ), 292 nullptr, 293 ast::Storage::Classes(), 294 ast::Linkage::Cforall 270 createExceptionInstType( exceptionName, params ) ) 295 271 ), 296 272 new ast::ObjectDecl( … … 298 274 "that", 299 275 new ast::PointerType( 300 createExceptionInstType( exceptionName, params ) ), 301 nullptr, 302 ast::Storage::Classes(), 303 ast::Linkage::Cforall 276 createExceptionInstType( exceptionName, params ) ) 304 277 ), 305 278 }, 306 279 { 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() ), 315 281 }, 316 282 new ast::CompoundStmt( location, { … … 366 332 "this", 367 333 new ast::PointerType( 368 createExceptionInstType( exceptionName, params ) ), 369 nullptr, 370 ast::Storage::Classes(), 371 ast::Linkage::Cforall 334 createExceptionInstType( exceptionName, params ) ) 372 335 ), 373 336 }, … … 377 340 "", 378 341 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 ) ) 383 343 ), 384 344 }, … … 432 392 tableName, 433 393 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 ) ) 437 395 ); 438 396 } -
TabularUnified src/ControlStruct/ExceptTranslateNew.cpp ¶
r5cf1228 re8616b6 190 190 location, 191 191 "__handler_index", 192 new ast::BasicType(ast::BasicType::SignedInt), 193 nullptr, //init 194 ast::Storage::Classes{}, 195 ast::Linkage::Cforall 192 new ast::BasicType( ast::BasicType::SignedInt ) 196 193 ); 197 194 } … … 203 200 location, 204 201 "__exception_inst", 205 new ast::PointerType( 206 new ast::StructInstType( except_decl ) 207 ), 208 nullptr, //init 209 ast::Storage::Classes{}, 210 ast::Linkage::Cforall 202 new ast::PointerType( new ast::StructInstType( except_decl ) ) 211 203 ); 212 204 }
Note: See TracChangeset
for help on using the changeset viewer.