Changeset 280 in dev for trunk/abdev/BasicCompiler_Common/src/ObjectModule.cpp
- Timestamp:
- Aug 14, 2007, 8:37:08 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/src/ObjectModule.cpp
r279 r280 14 14 void ObjectModule::StaticLink( ObjectModule &objectModule ) 15 15 { 16 long dataSectionBaseOffset = dataTable.GetSize(); 17 int sourceIndexBase = sources.size(); 18 16 19 // メタ情報を結合 17 meta.StaticLink( objectModule.meta, data Table.GetSize());20 meta.StaticLink( objectModule.meta, dataSectionBaseOffset, sourceIndexBase ); 18 21 19 22 // ネイティブコードを結合 23 objectModule.globalNativeCode.ResetDataSectionBaseOffset( dataSectionBaseOffset ); 24 objectModule.globalNativeCode.ResetSourceIndexes( sourceIndexBase ); 20 25 globalNativeCode.Put( objectModule.globalNativeCode ); 21 globalNativeCode.ResetDataSectionBaseOffset( dataTable.GetSize() );22 26 23 27 // データテーブルを結合 24 28 dataTable.Add( objectModule.dataTable ); 29 30 // ソースコードを結合 31 BOOST_FOREACH( const BasicSource &source, objectModule.sources ) 32 { 33 this->sources.push_back( source ); 34 } 25 35 } 26 36
Note:
See TracChangeset
for help on using the changeset viewer.