Changeset a4477db


Ignore:
Timestamp:
Sep 27, 2017, 3:53:12 PM (4 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
arm-eh, cleanup-dtors, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
b6d6e97
Parents:
7ca84116
Message:

Add genCopyType and genDefaultType to Autogen.h

Location:
src/SymTab
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Autogen.cc

    r7ca84116 ra4477db  
    119119                ObjectDecl *dstParam = new ObjectDecl( "_dst", Type::StorageClasses(), LinkageSpec::Cforall, nullptr, new ReferenceType( Type::Qualifiers(), paramType->clone() ), nullptr );
    120120                ftype->get_parameters().push_back( dstParam );
    121 
    122121                return ftype;
    123122        }
  • src/SymTab/Autogen.h

    r7ca84116 ra4477db  
    4444        extern FunctionDecl * dereferenceOperator;
    4545
    46         // temporary
     46        // generate the type of an assignment function for paramType
    4747        FunctionType * genAssignType( Type * paramType );
     48
     49        // generate the type of a default constructor or destructor for paramType
     50        FunctionType * genDefaultType( Type * paramType );
     51
     52        // generate the type of a copy constructor for paramType
     53        FunctionType * genDefaultType( Type * paramType );
    4854
    4955        /// inserts into out a generated call expression to function fname with arguments dstParam and srcParam. Intended to be used with generated ?=?, ?{}, and ^?{} calls.
Note: See TracChangeset for help on using the changeset viewer.