Changeset ba89e9b7 for src/GenPoly
- Timestamp:
- Apr 10, 2018, 3:16:55 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
- Children:
- da7fe39
- Parents:
- 207b496
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Lvalue.cc
r207b496 rba89e9b7 17 17 #include <string> // for string 18 18 19 #include "Common/Debug.h" 19 20 #include "Common/PassVisitor.h" 20 21 #include "GenPoly.h" // for isPolyType … … 123 124 PassVisitor<AddrRef> addrRef; 124 125 PassVisitor<FixIntrinsicResult> intrinsicResults; 126 Debug::codeGen( translationUnit, "begin" ); 125 127 mutateAll( translationUnit, intrinsicResults ); 128 Debug::codeGen( translationUnit, "intrinsicResults" ); 126 129 mutateAll( translationUnit, addrRef ); 130 Debug::codeGen( translationUnit, "addrRef" ); 127 131 mutateAll( translationUnit, refCvt ); 132 Debug::codeGen( translationUnit, "refCvt" ); 128 133 mutateAll( translationUnit, fixer ); 134 Debug::codeGen( translationUnit, "fixer" ); 129 135 mutateAll( translationUnit, collapser ); 136 Debug::codeGen( translationUnit, "collapser" ); 130 137 mutateAll( translationUnit, genLval ); 138 Debug::codeGen( translationUnit, "genLval" ); 131 139 mutateAll( translationUnit, elim ); // last because other passes need reference types to work 140 Debug::codeGen( translationUnit, "elim" ); 132 141 133 142 // from this point forward, no other pass should create reference types. … … 363 372 for ( int i = 0; i < diff; ++i ) { 364 373 ret = mkDeref( ret ); 374 // xxx - try removing one reference here? actually, looks like mkDeref already does this, so more closely look at the types generated. 365 375 } 366 376 if ( ! ResolvExpr::typesCompatibleIgnoreQualifiers( destType->stripReferences(), srcType->stripReferences(), SymTab::Indexer() ) ) {
Note: See TracChangeset
for help on using the changeset viewer.