- Timestamp:
- Oct 6, 2022, 11:25:49 AM (2 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 8c91088
- Parents:
- d0a00a5a
- Location:
- src
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Lvalue.h
rd0a00a5a r7fffb1b 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Sat Jul 22 09:21:59 201713 // Update Count : 211 // Last Modified By : Andrew Beach 12 // Last Modified On : Thu Sep 15 14:13:00 2022 13 // Update Count : 3 14 14 // 15 15 … … 20 20 class Declaration; 21 21 class Expression; 22 namespace ast { 23 class Expr; 24 class TranslationUnit; 25 } 22 26 23 27 namespace GenPoly { 24 28 /// replaces return type of `lvalue T` with `T*`, along with appropriate address-of and dereference operators 25 29 void convertLvalue( std::list< Declaration* >& translationUnit ); 30 void convertLvalue( ast::TranslationUnit & translationUnit ); 26 31 27 32 /// true after reference types have been eliminated from the source code. After this point, reference types should not be added to the AST. … … 30 35 /// applies transformations that allow GCC to accept more complicated lvalue expressions, e.g. &(a, b) 31 36 Expression * generalizedLvalue( Expression * expr ); 37 ast::Expr const * generalizedLvalue( ast::Expr const * expr ); 32 38 } // namespace GenPoly 33 39 -
src/GenPoly/module.mk
rd0a00a5a r7fffb1b 30 30 GenPoly/InstantiateGeneric.cc \ 31 31 GenPoly/InstantiateGeneric.h \ 32 GenPoly/LvalueNew.cpp \ 32 33 GenPoly/Lvalue.cc \ 33 34 GenPoly/ScopedSet.h \ -
src/main.cc
rd0a00a5a r7fffb1b 10 10 // Created On : Fri May 15 23:12:02 2015 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Thu Sep 15 13:58:00 202213 // Update Count : 67 812 // Last Modified On : Wed Oct 5 12:06:00 2022 13 // Update Count : 679 14 14 // 15 15 … … 444 444 445 445 PASS( "Instantiate Generics", GenPoly::instantiateGeneric( transUnit ) ); 446 if ( genericsp ) { 447 dump( std::move( transUnit ) ); 448 return EXIT_SUCCESS; 449 } // if 450 451 PASS( "Convert L-Value", GenPoly::convertLvalue( transUnit ) ); 446 452 447 453 translationUnit = convert( std::move( transUnit ) ); 448 449 if ( genericsp ) {450 dump( translationUnit );451 return EXIT_SUCCESS;452 } // if453 454 PASS( "Convert L-Value", GenPoly::convertLvalue( translationUnit ) );455 454 456 455 if ( bboxp ) {
Note: See TracChangeset
for help on using the changeset viewer.