Changeset dc2e7e0


Ignore:
Timestamp:
Apr 22, 2016, 10:33:19 AM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
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, with_gc
Children:
fbfb38e
Parents:
b617e4b
Message:

add ImplicitCopyCtorExpr? returnDecls to Visitor, Mutator, print

Location:
src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/Box.cc

    rb617e4b rdc2e7e0  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Thu Apr 14 15:57:46 2016
     12// Last Modified On : Mon Apr 18 13:22:15 2016
    1313// Update Count     : 295
    1414//
     
    784784                                                arg++;
    785785                                        } else {
     786                                                /// xxx - should this be an assertion?
    786787                                                throw SemanticError( "unbound type variable in application ", appExpr );
    787788                                        } // if
  • src/ResolvExpr/AlternativeFinder.cc

    rb617e4b rdc2e7e0  
    1010// Created On       : Sat May 16 23:52:08 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Wed Feb 10 17:00:04 2016
     12// Last Modified On : Wed Apr 20 14:24:03 2016
    1313// Update Count     : 24
    1414//
     
    982982                } // for
    983983        }
     984
     985        void AlternativeFinder::visit( ImplicitCopyCtorExpr * impCpCtorExpr ) {
     986                alternatives.push_back( Alternative( impCpCtorExpr->clone(), env, Cost::zero ) );
     987        }
    984988} // namespace ResolvExpr
    985989
  • src/ResolvExpr/AlternativeFinder.h

    rb617e4b rdc2e7e0  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // AlternativeFinder.h -- 
     7// AlternativeFinder.h --
    88//
    99// Author           : Richard C. Bilson
    1010// Created On       : Sat May 16 23:56:12 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat May 16 23:58:43 2015
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Tue Apr 19 11:44:53 2016
    1313// Update Count     : 2
    14 // 
     14//
    1515
    1616#ifndef ALTERNATIVEFINDER_H
     
    5454                virtual void visit( NameExpr *variableExpr );
    5555                virtual void visit( VariableExpr *variableExpr );
    56                 virtual void visit( ConstantExpr *constantExpr ); 
     56                virtual void visit( ConstantExpr *constantExpr );
    5757                virtual void visit( SizeofExpr *sizeofExpr );
    5858                virtual void visit( AlignofExpr *alignofExpr );
     
    6565                virtual void visit( CommaExpr *commaExpr );
    6666                virtual void visit( TupleExpr *tupleExpr );
     67                virtual void visit( ImplicitCopyCtorExpr * impCpCtorExpr );
    6768          public:  // xxx - temporary hack - should make Tuples::TupleAssignment a friend
    6869                template< typename InputIterator, typename OutputIterator >
  • src/SynTree/Expression.cc

    rb617e4b rdc2e7e0  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Thu Apr 14 15:33:12 2016
     12// Last Modified On : Mon Apr 18 17:25:06 2016
    1313// Update Count     : 40
    1414//
     
    486486        os << std::endl << std::string( indent, ' ' ) << "with copyCtors:" << std::endl;
    487487        printAll(copyCtors, os, indent+2);
     488        os << std::endl << std::string( indent, ' ' ) << "with return temporaries:" << std::endl;
     489        printAll(returnDecls, os, indent+2);
    488490        Expression::print( os, indent );
    489491}
  • src/SynTree/Mutator.cc

    rb617e4b rdc2e7e0  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Thu Apr 14 15:32:19 2016
     12// Last Modified On : Mon Apr 18 17:29:55 2016
    1313// Update Count     : 16
    1414//
     
    341341        mutateAll( impCpCtorExpr->get_copyCtors(), *this );
    342342        mutateAll( impCpCtorExpr->get_tempDecls(), *this );
     343        mutateAll( impCpCtorExpr->get_returnDecls(), *this );
    343344        return impCpCtorExpr;
    344345}
  • src/SynTree/Visitor.cc

    rb617e4b rdc2e7e0  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Thu Apr 14 15:31:18 2016
     12// Last Modified On : Mon Apr 18 17:30:10 2016
    1313// Update Count     : 18
    1414//
     
    288288        acceptAll( impCpCtorExpr->get_copyCtors(), *this );
    289289        acceptAll( impCpCtorExpr->get_tempDecls(), *this );
     290        acceptAll( impCpCtorExpr->get_returnDecls(), *this );
    290291}
    291292
Note: See TracChangeset for help on using the changeset viewer.