Changeset 6a896b0
- Timestamp:
- Jul 18, 2022, 11:27:06 AM (2 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- efcd8f2
- Parents:
- 847bb6f
- Location:
- src
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.cpp
r847bb6f r6a896b0 272 272 // Adjust the length of the string for the terminator. 273 273 const Expr * strSize = from_ulong( loc, str.size() + 1 ); 274 const Type * strType = new ArrayType( charType, strSize, FixedLen, StaticDim );274 const Type * strType = new ArrayType( charType, strSize, FixedLen, DynamicDim ); 275 275 const std::string strValue = "\"" + str + "\""; 276 276 return new ConstantExpr( loc, strType, strValue, std::nullopt ); -
src/ControlStruct/ExceptDecl.h
r847bb6f r6a896b0 9 9 // Author : Henry Xue 10 10 // Created On : Tue Jul 20 04:10:50 2021 11 // Last Modified By : Henry Xue12 // Last Modified On : Tue Jul 20 04:10:50 202113 // Update Count : 111 // Last Modified By : Andrew Beach 12 // Last Modified On : Tue Jul 12 15:49:00 2022 13 // Update Count : 2 14 14 // 15 15 … … 20 20 class Declaration; 21 21 22 namespace ast { 23 class TranslationUnit; 24 } 25 22 26 namespace ControlStruct { 23 27 void translateExcept( std::list< Declaration *> & translationUnit ); 28 void translateExcept( ast::TranslationUnit & translationUnit ); 24 29 } -
src/ControlStruct/module.mk
r847bb6f r6a896b0 17 17 SRC += \ 18 18 ControlStruct/ExceptDecl.cc \ 19 ControlStruct/ExceptDeclNew.cpp \ 19 20 ControlStruct/ExceptDecl.h \ 20 21 ControlStruct/ExceptTranslateNew.cpp \ -
src/Virtual/Tables.h
r847bb6f r6a896b0 19 19 #include "AST/Fwd.hpp" 20 20 class Declaration; 21 class Expression; 22 class FunctionDecl; 23 class Initializer; 24 class ObjectDecl; 21 25 class StructDecl; 22 class Expression; 26 class StructInstType; 27 class Type; 23 28 24 29 namespace Virtual { -
src/main.cc
r847bb6f r6a896b0 10 10 // Created On : Fri May 15 23:12:02 2015 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Tue Jul 12 12:02:00 202213 // Update Count : 67 512 // Last Modified On : Mon Jul 18 11:08:00 2022 13 // Update Count : 676 14 14 // 15 15 … … 330 330 Stats::Time::StopBlock(); 331 331 332 PASS( "Translate Exception Declarations", ControlStruct::translateExcept( translationUnit ) );333 if ( exdeclp ) {334 dump( translationUnit );335 return EXIT_SUCCESS;336 } // if337 338 CodeTools::fillLocations( translationUnit );339 340 332 if( useNewAST ) { 341 CodeTools::fillLocations( translationUnit );342 343 333 if (Stats::Counters::enabled) { 344 334 ast::pass_visitor_stats.avg = Stats::Counters::build<Stats::Counters::AverageCounter<double>>("Average Depth - New"); … … 348 338 349 339 forceFillCodeLocations( transUnit ); 340 341 PASS( "Translate Exception Declarations", ControlStruct::translateExcept( transUnit ) ); 342 if ( exdeclp ) { 343 dump( move( transUnit ) ); 344 return EXIT_SUCCESS; 345 } 350 346 351 347 // Must happen before auto-gen, or anything that examines ops. … … 473 469 translationUnit = convert( move( transUnit ) ); 474 470 } else { 471 PASS( "Translate Exception Declarations", ControlStruct::translateExcept( translationUnit ) ); 472 if ( exdeclp ) { 473 dump( translationUnit ); 474 return EXIT_SUCCESS; 475 } // if 476 475 477 // add the assignment statement after the initialization of a type parameter 476 478 PASS( "Validate", SymTab::validate( translationUnit ) );
Note: See TracChangeset
for help on using the changeset viewer.