Changeset 70a1c3ae for src/GenPoly


Ignore:
Timestamp:
Jan 29, 2019, 4:09:59 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
no_list
Children:
bee0694
Parents:
ede87c6
Message:

Starting to remove std::list to see if it affects performance, started with List of attributes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/Box.cc

    rede87c6 r70a1c3ae  
    298298                                                                                                         functionNesting > 0 ? Type::StorageClasses() : Type::StorageClasses( Type::Static ),
    299299                                                                                                         LinkageSpec::AutoGen, layoutFnType, new CompoundStmt(),
    300                                                                                                          std::list< Attribute * >(), Type::FuncSpecifiers( Type::Inline ) );
     300                                                                                                         std::vector< Attribute * >(), Type::FuncSpecifiers( Type::Inline ) );
    301301                layoutDecl->fixUniqueId();
    302302                return layoutDecl;
     
    14851485                        Attribute * aligned = new Attribute( "aligned", std::list<Expression*>{ new ConstantExpr( Constant::from_int(8) ) } );
    14861486                        return new ArrayType( Type::Qualifiers(), charType, size,
    1487                                 true, false, std::list<Attribute *>{ aligned } );
     1487                                true, false, std::vector< Attribute * >{ aligned } );
    14881488                }
    14891489
     
    17641764
    17651765                Expression *PolyGenericCalculator::postmutate( SizeofExpr *sizeofExpr ) {
    1766                         Type *ty = sizeofExpr->get_isType() ? 
     1766                        Type *ty = sizeofExpr->get_isType() ?
    17671767                                sizeofExpr->get_type() : sizeofExpr->get_expr()->get_result();
    1768                        
     1768
    17691769                        Expression * gen = genSizeof( ty );
    17701770                        if ( gen ) {
Note: See TracChangeset for help on using the changeset viewer.