Changeset 4cc4286


Ignore:
Timestamp:
Mar 30, 2016, 12:51:22 PM (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:
5b2f5bb
Parents:
6943f051
Message:

change makeEnumAssignment to makeEnumFunctions (ctor/dtors to be written)

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/TypeData.cc

    r6943f051 r4cc4286  
    441441                        dtorType->get_parameters().push_back( new ObjectDecl( "", DeclarationNode::NoStorageClass, LinkageSpec::Cforall, 0, new PointerType( Type::Qualifiers(), new TypeInstType( Type::Qualifiers(), (*i)->get_name(), *i ) ), 0 ) );
    442442                        (*i)->get_assertions().push_front( new FunctionDecl( "^?{}", DeclarationNode::NoStorageClass, LinkageSpec::Cforall, dtorType, 0, false, false ) );
     443
    443444                        // add copy ctor:  void ?{}(T *, T)
    444445                        FunctionType *copyCtorType = new FunctionType( Type::Qualifiers(), false );
  • src/SymTab/Autogen.cc

    r6943f051 r4cc4286  
    9999        //E ?=?(E volatile*, int),
    100100        //  ?=?(E _Atomic volatile*, int);
    101         void makeEnumAssignment( EnumDecl *enumDecl, EnumInstType *refType, unsigned int functionNesting, std::list< Declaration * > &declsToAdd ) {
     101        void makeEnumFunctions( EnumDecl *enumDecl, EnumInstType *refType, unsigned int functionNesting, std::list< Declaration * > &declsToAdd ) {
    102102                FunctionType *assignType = new FunctionType( Type::Qualifiers(), false );
    103103
     
    411411                        // enumInst->set_baseEnum( enumDecl );
    412412                        // declsToAdd.push_back(
    413                         makeEnumAssignment( enumDecl, enumInst, functionNesting, declsToAdd );
     413                        makeEnumFunctions( enumDecl, enumInst, functionNesting, declsToAdd );
    414414                }
    415415        }
Note: See TracChangeset for help on using the changeset viewer.