Changeset 704d11e for src


Ignore:
Timestamp:
Jun 14, 2018, 5:35:09 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, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
47498bd
Parents:
c5d7701
Message:

Minor cleanup

Location:
src/Parser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/DeclarationNode.cc

    rc5d7701 r704d11e  
    10031003                                        * out++ = dwt;
    10041004                                } else if ( StructDecl * agg = dynamic_cast< StructDecl * >( decl ) ) {
    1005                                         StructInstType * inst = new StructInstType( Type::Qualifiers(), agg->get_name() );
     1005                                        StructInstType * inst = new StructInstType( Type::Qualifiers(), agg->name );
    10061006                                        auto obj = new ObjectDecl( "", Type::StorageClasses(), linkage, nullptr, inst, nullptr );
    10071007                                        obj->location = cur->location;
     
    10091009                                        delete agg;
    10101010                                } else if ( UnionDecl * agg = dynamic_cast< UnionDecl * >( decl ) ) {
    1011                                         UnionInstType * inst = new UnionInstType( Type::Qualifiers(), agg->get_name() );
     1011                                        UnionInstType * inst = new UnionInstType( Type::Qualifiers(), agg->name );
    10121012                                        auto obj = new ObjectDecl( "", Type::StorageClasses(), linkage, nullptr, inst, nullptr );
    10131013                                        obj->location = cur->location;
  • src/Parser/TypeData.cc

    rc5d7701 r704d11e  
    893893        assert( td->kind == TypeData::Function );
    894894        FunctionType * ft = new FunctionType( buildQualifiers( td ), ! td->function.params || td->function.params->hasEllipsis );
    895         buildList( td->function.params, ft->get_parameters() );
    896         buildForall( td->forall, ft->get_forall() );
     895        buildList( td->function.params, ft->parameters );
     896        buildForall( td->forall, ft->forall );
    897897        if ( td->base ) {
    898898                switch ( td->base->kind ) {
    899899                  case TypeData::Tuple:
    900                         buildList( td->base->tuple, ft->get_returnVals() );
     900                        buildList( td->base->tuple, ft->returnVals );
    901901                        break;
    902902                  default:
Note: See TracChangeset for help on using the changeset viewer.