Ignore:
Timestamp:
Jan 29, 2019, 4:09:59 PM (6 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/CodeGen/CodeGenerator.cc

    rede87c6 r70a1c3ae  
    129129        }
    130130
    131         void CodeGenerator::genAttributes( list< Attribute * > & attributes ) {
     131        void CodeGenerator::genAttributes( vector< Attribute * > & attributes ) {
    132132          if ( attributes.empty() ) return;
    133133                output << "__attribute__ ((";
    134                 for ( list< Attribute * >::iterator attr( attributes.begin() );; ) {
     134                for ( vector< Attribute * >::iterator attr( attributes.begin() );; ) {
    135135                        output << (*attr)->name;
    136136                        if ( ! (*attr)->parameters.empty() ) {
Note: See TracChangeset for help on using the changeset viewer.