Changeset 70a1c3ae for src/CodeGen
- Timestamp:
- Jan 29, 2019, 4:09:59 PM (5 years ago)
- Branches:
- no_list
- Children:
- bee0694
- Parents:
- ede87c6
- Location:
- src/CodeGen
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
rede87c6 r70a1c3ae 129 129 } 130 130 131 void CodeGenerator::genAttributes( list< Attribute * > & attributes ) {131 void CodeGenerator::genAttributes( vector< Attribute * > & attributes ) { 132 132 if ( attributes.empty() ) return; 133 133 output << "__attribute__ (("; 134 for ( list< Attribute * >::iterator attr( attributes.begin() );; ) {134 for ( vector< Attribute * >::iterator attr( attributes.begin() );; ) { 135 135 output << (*attr)->name; 136 136 if ( ! (*attr)->parameters.empty() ) { -
src/CodeGen/CodeGenerator.h
rede87c6 r70a1c3ae 118 118 void postvisit( ImplicitCtorDtorStmt * ); 119 119 120 void genAttributes( std:: list< Attribute * > & attributes );120 void genAttributes( std::vector< Attribute * > & attributes ); 121 121 122 122 template< class Iterator > void genCommaList( Iterator begin, Iterator end );
Note: See TracChangeset
for help on using the changeset viewer.