Ignore:
Timestamp:
Sep 24, 2008, 2:02:16 AM (16 years ago)
Author:
イグトランス (egtra)
Message:

BOOST_FOREACHを可能なものはVC++ 2005 for eachへ置換(やや速くなる)。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Linker.cpp

    r587 r750  
    77void Linker::ResolveDataTableSchedules( long dataSectionBaseOffset )
    88{
    9     BOOST_FOREACH( const Schedule &schedule, nativeCode.GetSchedules() )
     9    foreach( const Schedule &schedule, nativeCode.GetSchedules() )
    1010    {
    1111        if( schedule.GetType() == Schedule::DataTable )
     
    1818    }
    1919
    20     BOOST_FOREACH( const Schedule &schedule, dataTable.schedules )
     20    foreach( const Schedule &schedule, dataTable.schedules )
    2121    {
    2222        if( schedule.GetType() == Schedule::DataTable )
     
    4040void Linker::ResolveCatchAddressSchedules( long codeSectionBaseOffset )
    4141{
    42     BOOST_FOREACH( const Schedule &schedule, nativeCode.GetSchedules() )
     42    foreach( const Schedule &schedule, nativeCode.GetSchedules() )
    4343    {
    4444        if( schedule.GetType() == Schedule::CatchAddress )
     
    5555    }
    5656
    57     BOOST_FOREACH( const Schedule &schedule, dataTable.schedules )
     57    foreach( const Schedule &schedule, dataTable.schedules )
    5858    {
    5959        if( schedule.GetType() == Schedule::CatchAddress )
     
    8181void Linker::ResolveDllProcSchedules( long codeSectionBaseOffset, long importSectionBaseOffset, long lookupSize, long hintSize )
    8282{
    83     BOOST_FOREACH( const Schedule &schedule, nativeCode.GetSchedules() )
     83    foreach( const Schedule &schedule, nativeCode.GetSchedules() )
    8484    {
    8585        if( schedule.GetType() == Schedule::DllProc )
     
    105105void Linker::ResolveUserProcSchedules( long codeSectionBaseOffset )
    106106{
    107     BOOST_FOREACH( const Schedule &schedule, nativeCode.GetSchedules() )
     107    foreach( const Schedule &schedule, nativeCode.GetSchedules() )
    108108    {
    109109        if( schedule.GetType() == Schedule::UserProc
     
    139139    int allInitVarSize = compiler.GetObjectModule().meta.GetGlobalVars().initAreaBuffer.GetSize();
    140140
    141     BOOST_FOREACH( const Schedule &schedule, nativeCode.GetSchedules() )
     141    foreach( const Schedule &schedule, nativeCode.GetSchedules() )
    142142    {
    143143        if( schedule.GetType() == Schedule::GlobalVar )
     
    163163void Linker::ResolveVtblSchedule( long dataSectionBaseOffset )
    164164{
    165     BOOST_FOREACH( const Schedule &schedule, nativeCode.GetSchedules() )
     165    foreach( const Schedule &schedule, nativeCode.GetSchedules() )
    166166    {
    167167        if( schedule.GetType() == Schedule::ComVtbl )
     
    186186    }
    187187
    188     BOOST_FOREACH( const Schedule &schedule, dataTable.schedules )
     188    foreach( const Schedule &schedule, dataTable.schedules )
    189189    {
    190190        if( schedule.GetType() == Schedule::ComVtbl )
     
    226226void Linker::ResolveTypeInfoSchedule( long dataSectionBaseOffset )
    227227{
    228     BOOST_FOREACH( const Schedule &schedule, dataTable.schedules )
     228    foreach( const Schedule &schedule, dataTable.schedules )
    229229    {
    230230        if( schedule.GetType() == Schedule::TypeInfo )
Note: See TracChangeset for help on using the changeset viewer.