Changeset 637 in dev for trunk/ab5.0/abdev/ab_common/src/Lexical/NativeCode.cpp
- Timestamp:
- Jun 11, 2008, 10:10:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ab_common/src/Lexical/NativeCode.cpp
r636 r637 43 43 this->sourceLines.push_back( 44 44 SourceLine( 45 sourceLine.GetLineNum(),46 45 baseOffset + sourceLine.GetNativeCodePos(), 47 sourceLine.GetRelationalObjectModuleIndex(), // TODO: 複数libの取り込みを想定できていない(ソースコード行番号とネイティブコード位置の対応情報の追加は静的リンクが完了した後に行うべき) 48 sourceLine.GetSourceCodePos(), 49 sourceLine.GetCodeType() 46 sourceLine.GetCodeType(), 47 sourceLine.GetSourceCodePosition() 50 48 ) 51 49 ); … … 106 104 } 107 105 108 void NativeCode::NextSourceLine( int currentSourceIndex, int nowLine)106 void NativeCode::NextSourceLine( const SourceCodePosition &sourceCodePosition ) 109 107 { 110 108 if( sourceLines.size() ) … … 112 110 if( sourceLines.back().GetNativeCodePos() == GetSize() ) 113 111 { 114 sourceLines.back().SetSourceCodePos ( nowLine);112 sourceLines.back().SetSourceCodePosition( sourceCodePosition ); 115 113 return; 116 114 } … … 130 128 sourceLines.push_back( 131 129 SourceLine( 132 (long)sourceLines.size(),133 130 GetSize(), 134 currentSourceIndex, 135 nowLine, 136 sourceLineType 131 sourceLineType, 132 sourceCodePosition 137 133 ) 138 134 ); … … 152 148 } 153 149 } 154 void NativeCode::Reset SourceIndexes( const std::vector<int> &relationTable )150 void NativeCode::ResetRelationalObjectModuleIndex( const std::vector<int> &relationTable ) 155 151 { 156 152 BOOST_FOREACH( SourceLine &sourceLine, sourceLines ) 157 153 { 158 sourceLine.SetRelationalObjectModuleIndex( relationTable[sourceLine.GetRelationalObjectModuleIndex()] ); 154 sourceLine.GetSourceCodePosition().SetRelationalObjectModuleIndex( 155 relationTable[sourceLine.GetSourceCodePosition().GetRelationalObjectModuleIndex()] 156 ); 159 157 } 160 158 } 159 160 void NativeCode::Resolve() 161 { 162 // TODO: Resolve 163 }
Note:
See TracChangeset
for help on using the changeset viewer.