Changeset 8404321 for src


Ignore:
Timestamp:
Sep 27, 2017, 4:25:19 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
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, resolv-new, with_gc
Children:
4e66a18
Parents:
75626a1
git-author:
Rob Schluntz <rschlunt@…> (09/27/17 15:53:12)
git-committer:
Rob Schluntz <rschlunt@…> (09/27/17 16:25:19)
Message:

Add genCopyType and genDefaultType to Autogen.h

Location:
src/SymTab
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Autogen.cc

    r75626a1 r8404321  
    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

    r75626a1 r8404321  
    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 * genCopyType( 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.