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/include/NativeCode.h

    r279 r280  
    130130    int lineNum;
    131131    long nativeCodePos;
     132    int sourceIndex;
    132133    long sourceCodePos;
    133134    DWORD codeType;
     
    142143        ar & BOOST_SERIALIZATION_NVP( lineNum );
    143144        ar & BOOST_SERIALIZATION_NVP( nativeCodePos );
     145        ar & BOOST_SERIALIZATION_NVP( sourceIndex );
    144146        ar & BOOST_SERIALIZATION_NVP( sourceCodePos );
    145147        ar & BOOST_SERIALIZATION_NVP( codeType );
     
    147149
    148150public:
    149     SourceLine( int lineNum, int nativeCodePos, int sourceCodePos, DWORD codeType )
     151    SourceLine( int lineNum, int nativeCodePos, int sourceIndex, int sourceCodePos, DWORD codeType )
    150152        : lineNum( lineNum )
    151153        , nativeCodePos( nativeCodePos )
     154        , sourceIndex( sourceIndex )
    152155        , sourceCodePos( sourceCodePos )
    153156        , codeType( codeType )
     
    165168    {
    166169        return nativeCodePos;
     170    }
     171    int GetSourceIndex() const
     172    {
     173        return sourceIndex;
     174    }
     175    void SetSourceIndex( int sourceIndex )
     176    {
     177        this->sourceIndex = sourceIndex;
    167178    }
    168179    long GetSourceCodePos() const
     
    366377
    367378    void ResetDataSectionBaseOffset( long dataSectionBaseOffset );
     379    void ResetSourceIndexes( long sourceIndexBase );
    368380};
Note: See TracChangeset for help on using the changeset viewer.