Changeset 637 in dev for trunk/ab5.0/abdev/compiler_x86


Ignore:
Timestamp:
Jun 11, 2008, 10:10:26 PM (16 years ago)
Author:
dai_9181
Message:

リンカの依存関係解決モジュールを製作中

Location:
trunk/ab5.0/abdev/compiler_x86
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/compiler_x86/Compile_ProcOp.cpp

    r636 r637  
    328328    }
    329329
    330     char *backupBasbuf = NULL;
    331     int backupCurrentRelationalObjectModuleIndexForSource = compiler.GetCurrentRelationalObjectModuleIndexForSource();
    332 
    333330    if( !pUserProc->IsAutoGeneration() )
    334331    {
    335         // テンプレート展開がされている場合、対象のソースコードが現在のオブジェクトモジュールではない場合がある
    336         if( compiler.staticLibraries[compiler.GetCurrentRelationalObjectModuleIndexForSource()]->GetName() != pUserProc->GetSourceCodePosition().GetObjectModuleName() )
    337         {
    338             for( int i=0; i<static_cast<int>(compiler.staticLibraries.size()); i++ )
    339             {
    340                 const ObjectModule *pObjectModule = compiler.staticLibraries[i];
    341 
    342                 if( pObjectModule->GetName() == pUserProc->GetSourceCodePosition().GetObjectModuleName() )
    343                 {
    344                     compiler.SetCurrentRelationalObjectModuleIndexForSource( i );
    345                     basbuf = const_cast<char *>(compiler.GetCurrentSource().GetBuffer());
    346                 }
    347             }
    348         }
     332        // 対象のソースコードを含むオブジェクトモジュールのインデックスを指定する
     333        // ※テンプレート展開がされている場合、対象のソースコードが現在のオブジェクトモジュールではない場合がある
     334        compiler.SetCurrentRelationalObjectModuleIndexForSource( pUserProc->GetSourceCodePosition().GetRelationalObjectModuleIndex() );
     335        basbuf = const_cast<char *>(compiler.GetCurrentSource().GetBuffer());
    349336
    350337        cp=pUserProc->GetSourceCodePosition().GetPos();
  • trunk/ab5.0/abdev/compiler_x86/MakePeHdr.cpp

    r636 r637  
    510510    {
    511511        // 静的リンクライブラリ
     512
     513        // 外部参照をlibから取り除く
     514        ActiveBasic::Common::Environment::SetRemoveExternalMark( true );
    512515
    513516        // 格納先ディレクトリを作る
Note: See TracChangeset for help on using the changeset viewer.