Changeset 81da3da4 for src/ControlStruct/ExceptTranslate.cpp
- Timestamp:
- Dec 11, 2023, 4:18:13 AM (22 months ago)
- Branches:
- master
- Children:
- 21ce2c7, 2554f24
- Parents:
- 5ddb8bf (diff), 1c85ffc (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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/ExceptTranslate.cpp
r5ddb8bf r81da3da4 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ExceptTranslate New.cpp -- Conversion of exception control flow structures.7 // ExceptTranslate.cpp -- Conversion of exception control flow structures. 8 8 // 9 9 // Author : Andrew Beach … … 26 26 namespace { 27 27 28 29 30 31 block->push_back(new ast::DeclStmt(block->location, item));32 28 typedef std::list<ast::CatchClause*> CatchList; 29 30 void appendDeclStmt( ast::CompoundStmt * block, ast::DeclWithType * item ) { 31 block->push_back( new ast::DeclStmt( block->location, item ) ); 32 } 33 33 34 34 class TranslateThrowsCore final : public ast::WithGuards { … … 253 253 location, 254 254 "try", 255 {}, //forall256 255 {}, //no param 257 256 {}, //no return … … 267 266 location, 268 267 "catch", 269 {}, //forall270 268 { make_index_object( location ), make_exception_object( location ) }, 271 269 {}, //return void … … 281 279 location, 282 280 "match", 283 {}, //forall284 281 { make_exception_object( location ) }, 285 282 { make_unused_index_object( location ) }, … … 295 292 location, 296 293 "handle", 297 {}, //forall298 294 { make_exception_object( location ) }, 299 295 { make_bool_object( location ) }, … … 309 305 location, 310 306 "finally", 311 {}, //forall312 307 { make_voidptr_object( location ) }, 313 308 {}, //return void
Note:
See TracChangeset
for help on using the changeset viewer.