Ignore:
Timestamp:
Aug 14, 2007, 8:37:08 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

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

    r276 r280  
    11#include "stdafx.h"
    22
    3 #include <NativeCode.h>
    4 #include <Procedure.h>
     3#include <Compiler.h>
    54
    65#define BREAK_EIP(checkEip)  (obp+0x00401000>=checkEip)
     
    3231                sourceLine.GetLineNum(),
    3332                baseOffset + sourceLine.GetNativeCodePos(),
     33                sourceLine.GetSourceIndex(),
    3434                sourceLine.GetSourceCodePos(),
    3535                sourceLine.GetCodeType()
     
    8686        sourceLineType |= CODETYPE_SYSTEMPROC;
    8787    }
    88     sourceLines.push_back( SourceLine( (long)sourceLines.size(), size, cp, sourceLineType ) );
     88    sourceLines.push_back(
     89        SourceLine(
     90            (long)sourceLines.size(),
     91            size,
     92            compiler.GetObjectModule().GetCurrentSourceIndex(),
     93            cp,
     94            sourceLineType
     95        )
     96    );
    8997}
    9098
     
    102110    }
    103111}
     112void NativeCode::ResetSourceIndexes( long sourceIndexBase )
     113{
     114    BOOST_FOREACH( SourceLine &sourceLine, sourceLines )
     115    {
     116        sourceLine.SetSourceIndex( sourceLine.GetSourceIndex() + sourceIndexBase );
     117    }
     118}
Note: See TracChangeset for help on using the changeset viewer.