Changeset 68cd1ce for src/Tuples
- Timestamp:
- Jun 13, 2015, 8:30:25 AM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- a1d5d2a
- Parents:
- 7bcf74e
- Location:
- src/Tuples
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Tuples/AssignExpand.cc
r7bcf74e r68cd1ce 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon May 18 11:24:47201513 // Update Count : 212 // Last Modified On : Sat Jun 13 08:16:39 2015 13 // Update Count : 4 14 14 // 15 15 … … 23 23 #include "AssignExpand.h" 24 24 25 #include "Parser/ParseNode.h" 26 25 27 #include "SynTree/Type.h" 28 #include "SynTree/Declaration.h" 29 #include "SynTree/Expression.h" 26 30 #include "SynTree/Statement.h" 27 #include "SynTree/Expression.h"28 #include "SynTree/Declaration.h"29 31 30 32 namespace Tuples { … … 100 102 assert( rhsT->get_results().size() == 1 ); 101 103 // declare temporaries 102 ObjectDecl *lhs = new ObjectDecl( temporaryNamer.newName("_lhs_"), Declaration ::NoStorageClass, LinkageSpec::Intrinsic, 0,104 ObjectDecl *lhs = new ObjectDecl( temporaryNamer.newName("_lhs_"), DeclarationNode::NoStorageClass, LinkageSpec::Intrinsic, 0, 103 105 lhsT->get_results().front(), 0 ); 104 106 decls.push_back( new DeclStmt( std::list< Label >(), lhs ) ); 105 ObjectDecl *rhs = new ObjectDecl( temporaryNamer.newName("_rhs_"), Declaration ::NoStorageClass, LinkageSpec::Intrinsic, 0,107 ObjectDecl *rhs = new ObjectDecl( temporaryNamer.newName("_rhs_"), DeclarationNode::NoStorageClass, LinkageSpec::Intrinsic, 0, 106 108 rhsT->get_results().front(), 0); 107 109 decls.push_back( new DeclStmt( std::list< Label >(), rhs )); -
src/Tuples/FunctionChecker.cc
r7bcf74e r68cd1ce 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon May 18 11:59:55201513 // Update Count : 312 // Last Modified On : Sat Jun 13 08:17:19 2015 13 // Update Count : 4 14 14 // 15 15 … … 75 75 if ( applicationExpr->get_results().size() > 1 ) { 76 76 for ( std::list< Type *>::iterator res = applicationExpr->get_results().begin(); res != applicationExpr->get_results().end(); res++ ) 77 temporaries.push_back( new ObjectDecl( nameGen->newName(), Declaration::Auto,LinkageSpec::AutoGen, 0, (*res )->clone(), 0 ) );77 temporaries.push_back( new ObjectDecl( nameGen->newName(), DeclarationNode::Auto, LinkageSpec::AutoGen, 0, (*res )->clone(), 0 ) ); 78 78 79 79 assert( ! temporaries.empty() );
Note: See TracChangeset
for help on using the changeset viewer.