Ignore:
Timestamp:
May 10, 2008, 3:09:26 PM (16 years ago)
Author:
dai_9181
Message:

[585][586]をリバース。NativeCodeクラスとMetaクラスは依存関係があるので分離しない方針とする。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/compiler_x64/MakePeHdr.cpp

    r585 r587  
    115115    if( compiler.IsDebug() )
    116116    {
    117         compiler.GetObjectModule().nativeSection.dataTable.Add( (long)0x00000002 );
     117        compiler.GetObjectModule().dataTable.Add( (long)0x00000002 );
    118118    }
    119119
     
    133133    {
    134134        ActiveBasic::Compiler::LexicalAnalyzer::CollectEnums(
    135             compiler.GetObjectModule().nativeSection.GetCurrentSource().GetBuffer(),
     135            compiler.GetObjectModule().GetCurrentSource().GetBuffer(),
    136136            compiler.enumInfoCollection
    137137        );
     
    146146    // 名前空間情報を取得
    147147    ActiveBasic::Compiler::LexicalAnalyzer::CollectNamespaces(
    148         compiler.GetObjectModule().nativeSection.GetCurrentSource().GetBuffer(),
     148        compiler.GetObjectModule().GetCurrentSource().GetBuffer(),
    149149        compiler.GetObjectModule().meta.GetNamespaces()
    150150    );
     
    153153    {
    154154        ActiveBasic::Compiler::LexicalAnalyzer::CollectDelegates(
    155             compiler.GetObjectModule().nativeSection.GetCurrentSource().GetBuffer(),
     155            compiler.GetObjectModule().GetCurrentSource().GetBuffer(),
    156156            compiler.GetObjectModule().meta.GetDelegates()
    157157        );
     
    169169    //     ※オブジェクトの内容までは取得しない
    170170    ActiveBasic::Compiler::LexicalAnalyzer::CollectClassesForNameOnly(
    171         compiler.GetObjectModule().nativeSection.GetCurrentSource().GetBuffer(),
     171        compiler.GetObjectModule().GetCurrentSource().GetBuffer(),
    172172        compiler.GetObjectModule().meta.GetClasses()
    173173    );
     
    175175    //TypeDef情報を収集
    176176    ActiveBasic::Compiler::LexicalAnalyzer::CollectTypeDefs(
    177         compiler.GetObjectModule().nativeSection.GetCurrentSource().GetBuffer(),
     177        compiler.GetObjectModule().GetCurrentSource().GetBuffer(),
    178178        compiler.GetObjectModule().meta.GetTypeDefs()
    179179    );
     
    190190    //定数情報を取得
    191191    ActiveBasic::Compiler::LexicalAnalyzer::CollectConsts(
    192         compiler.GetObjectModule().nativeSection.GetCurrentSource().GetBuffer(),
     192        compiler.GetObjectModule().GetCurrentSource().GetBuffer(),
    193193        compiler.GetObjectModule().meta.GetGlobalConsts(),
    194194        compiler.GetObjectModule().meta.GetGlobalConstMacros()
     
    198198    compiler.SetCompilingClass( NULL );
    199199    ActiveBasic::Compiler::LexicalAnalyzer::CollectProcedures(
    200         compiler.GetObjectModule().nativeSection.GetCurrentSource().GetBuffer(),
     200        compiler.GetObjectModule().GetCurrentSource().GetBuffer(),
    201201        compiler.GetObjectModule().meta.GetUserProcs(),
    202202        compiler.GetObjectModule().meta.GetDllProcs()
     
    205205    // クラス情報を取得(※注 - CollectProceduresの後に呼び出す)
    206206    ActiveBasic::Compiler::LexicalAnalyzer::CollectClasses(
    207         compiler.GetObjectModule().nativeSection.GetCurrentSource().GetBuffer(),
     207        compiler.GetObjectModule().GetCurrentSource().GetBuffer(),
    208208        compiler.GetObjectModule().meta.GetClasses()
    209209    );
     
    369369
    370370        // コード生成対象を選択
    371         compiler.codeGenerator.Select( compiler.GetObjectModule().nativeSection.globalNativeCode );
     371        compiler.codeGenerator.Select( compiler.GetObjectModule().globalNativeCode );
    372372
    373373        trace_for_sourcecodestep( "★★★ グローバル領域のコンパイルを開始" );
     
    903903
    904904    //データセクションのファイル上のサイズ
    905     if(compiler.GetObjectModule().nativeSection.dataTable.GetSize()%FILE_ALIGNMENT) FileSize_DataSection=compiler.GetObjectModule().nativeSection.dataTable.GetSize()+(FILE_ALIGNMENT-compiler.GetObjectModule().nativeSection.dataTable.GetSize()%FILE_ALIGNMENT);
    906     else FileSize_DataSection=compiler.GetObjectModule().nativeSection.dataTable.GetSize();
     905    if(compiler.GetObjectModule().dataTable.GetSize()%FILE_ALIGNMENT) FileSize_DataSection=compiler.GetObjectModule().dataTable.GetSize()+(FILE_ALIGNMENT-compiler.GetObjectModule().dataTable.GetSize()%FILE_ALIGNMENT);
     906    else FileSize_DataSection=compiler.GetObjectModule().dataTable.GetSize();
    907907    if(FileSize_DataSection) bUse_DataSection=1;
    908908    else bUse_DataSection=0;
     
    11051105    }
    11061106
    1107     compiler.linker.SetDataTable( compiler.GetObjectModule().nativeSection.dataTable );
     1107    compiler.linker.SetDataTable( compiler.GetObjectModule().dataTable );
    11081108
    11091109    compiler.linker.SetImageBase( ImageBase );
Note: See TracChangeset for help on using the changeset viewer.