Ignore:
Timestamp:
Aug 11, 2007, 4:03:49 PM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/src/NativeCode.cpp

    r263 r273  
    125125    sourceLines.push_back( SourceLine( (long)sourceLines.size(), size, cp, sourceLineType ) );
    126126}
     127
     128void NativeCode::ResetDataSectionBaseOffset( long dataSectionBaseOffset )
     129{
     130    BOOST_FOREACH( const Schedule &schedule, schedules )
     131    {
     132        if( schedule.GetType() == Schedule::DataTable )
     133        {
     134            Overwrite(
     135                schedule.GetOffset(),
     136                GetLong( schedule.GetOffset() ) + dataSectionBaseOffset
     137            );
     138        }
     139    }
     140}
Note: See TracChangeset for help on using the changeset viewer.