Changes in / [8a4e472:2f8d351]
- Location:
- src
- Files:
-
- 5 edited
-
CodeGen/GenType.h (modified) (2 diffs)
-
ControlStruct/ExceptDecl.h (modified) (2 diffs)
-
ControlStruct/ExceptTranslate.cpp (modified) (1 diff)
-
ControlStruct/ExceptTranslate.h (modified) (2 diffs)
-
GenPoly/ScrubTypeVars.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/GenType.h
r8a4e472 r2f8d351 20 20 #include "CodeGen/Options.h" // for Options 21 21 22 class Type; 22 23 namespace ast { 23 24 class Type; … … 25 26 26 27 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 ); 27 31 28 32 std::string genType( ast::Type const * type, const std::string & base, const Options & options ); -
src/ControlStruct/ExceptDecl.h
r8a4e472 r2f8d351 16 16 #pragma once 17 17 18 #include <list> // for list 19 20 class Declaration; 21 18 22 namespace ast { 19 23 class TranslationUnit; … … 21 25 22 26 namespace ControlStruct { 23 24 27 /// Unfold exception declarations into raw structure declarations. 25 28 /// Also builds vtable declarations and converts vtable types. 29 void translateExcept( std::list< Declaration *> & translationUnit ); 26 30 void translateExcept( ast::TranslationUnit & translationUnit ); 27 28 31 } -
src/ControlStruct/ExceptTranslate.cpp
r8a4e472 r2f8d351 26 26 namespace { 27 27 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 }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
r8a4e472 r2f8d351 16 16 #pragma once 17 17 18 #include <list> // for list 19 20 class Declaration; 18 21 namespace ast { 19 22 class TranslationUnit; … … 21 24 22 25 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 */ 23 31 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 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 */ 35 38 } 36 39 -
src/GenPoly/ScrubTypeVars.hpp
r8a4e472 r2f8d351 16 16 #pragma once 17 17 18 #include <cassert> // for strict_dynamic_cast18 #include <cassert> // for assert 19 19 20 20 #include "AST/Fwd.hpp" // for Node 21 #include "GenPoly.h" // for TypeVarMap 21 #include "GenPoly.h" // for TypeVarMap, isPolyType, isDynType 22 22 23 23 namespace GenPoly {
Note:
See TracChangeset
for help on using the changeset viewer.