Changeset 8a4e472
- Timestamp:
- Dec 4, 2023, 4:39:47 PM (13 months ago)
- Branches:
- master
- Children:
- ebadb5d
- Parents:
- 2f8d351 (diff), 539a8c8 (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
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/GenType.h
r2f8d351 r8a4e472 20 20 #include "CodeGen/Options.h" // for Options 21 21 22 class Type;23 22 namespace ast { 24 23 class Type; … … 26 25 27 26 namespace CodeGen { 28 std::string genType( Type *type, const std::string &baseString, const Options &options );29 std::string genType( Type *type, const std::string &baseString, bool pretty = false, bool genC = false, bool lineMarks = false );30 std::string genPrettyType( Type * type, const std::string & baseString );31 27 32 28 std::string genType( ast::Type const * type, const std::string & base, const Options & options ); -
src/ControlStruct/ExceptDecl.h
r2f8d351 r8a4e472 16 16 #pragma once 17 17 18 #include <list> // for list19 20 class Declaration;21 22 18 namespace ast { 23 19 class TranslationUnit; … … 25 21 26 22 namespace ControlStruct { 23 27 24 /// Unfold exception declarations into raw structure declarations. 28 25 /// Also builds vtable declarations and converts vtable types. 29 void translateExcept( std::list< Declaration *> & translationUnit );30 26 void translateExcept( ast::TranslationUnit & translationUnit ); 27 31 28 } -
src/ControlStruct/ExceptTranslate.cpp
r2f8d351 r8a4e472 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 { -
src/ControlStruct/ExceptTranslate.h
r2f8d351 r8a4e472 16 16 #pragma once 17 17 18 #include <list> // for list19 20 class Declaration;21 18 namespace ast { 22 19 class TranslationUnit; … … 24 21 25 22 namespace ControlStruct { 26 void translateThrows( std::list< Declaration *> & translationUnit );27 void translateThrows( ast::TranslationUnit & transUnit );28 /* Replaces all throw & throwResume statements with function calls.29 * These still need to be resolved, so call this before the reslover.30 */31 23 32 void translateTries( std::list< Declaration *> & translationUnit ); 33 void translateTries( ast::TranslationUnit & transUnit ); 34 /* Replaces all try blocks (and their many clauses) with function definitions and calls. 35 * This uses the exception built-ins to produce typed output and should take place after 36 * the resolver. It also produces virtual casts and should happen before they are expanded. 37 */ 24 void translateThrows( ast::TranslationUnit & transUnit ); 25 /* Replaces all throw & throwResume statements with function calls. 26 * These still need to be resolved, so call this before the reslover. 27 */ 28 29 void translateTries( ast::TranslationUnit & transUnit ); 30 /* Replaces all try blocks (and their many clauses) with function definitions and calls. 31 * This uses the exception built-ins to produce typed output and should take place after 32 * the resolver. It also produces virtual casts and should happen before they are expanded. 33 */ 34 38 35 } 39 36 -
src/GenPoly/ScrubTypeVars.hpp
r2f8d351 r8a4e472 16 16 #pragma once 17 17 18 #include <cassert> // for assert18 #include <cassert> // for strict_dynamic_cast 19 19 20 20 #include "AST/Fwd.hpp" // for Node 21 #include "GenPoly.h" // for TypeVarMap , isPolyType, isDynType21 #include "GenPoly.h" // for TypeVarMap 22 22 23 23 namespace GenPoly {
Note: See TracChangeset
for help on using the changeset viewer.