Changeset 265 in dev for trunk/abdev/BasicCompiler_Common/include
- Timestamp:
- Aug 6, 2007, 11:44:42 PM (17 years ago)
- Location:
- trunk/abdev/BasicCompiler_Common/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/include/Compiler.h
r256 r265 13 13 NamespaceSupporter namespaceSupporter; 14 14 15 // オブジェクトモジュール 16 ObjectModule *pObjectModule; 17 ObjectModule *pNowObjectModule; 18 15 19 public: 20 21 Compiler() 22 : pObjectModule( new ObjectModule ) 23 , pNowObjectModule( pObjectModule ) 24 { 25 } 26 ~Compiler() 27 { 28 delete pObjectModule; 29 } 16 30 17 31 NamespaceSupporter &GetNamespaceSupporter() … … 20 34 } 21 35 22 // オブジェクトモジュール23 ObjectModule objectModule;24 25 36 // コード生成機構 26 37 CodeGenerator codeGenerator; … … 28 39 // リンカ 29 40 Linker linker; 41 42 ObjectModule &GetObjectModule() 43 { 44 return *pNowObjectModule; 45 } 46 void SelectObjectModule( ObjectModule &objectModule ) 47 { 48 pNowObjectModule = &objectModule; 49 } 30 50 31 51 static bool StringToType( const std::string &typeName, Type &type ); -
trunk/abdev/BasicCompiler_Common/include/NativeCode.h
r263 r265 408 408 } 409 409 410 const SourceLines &GetSourceLines() const 411 { 412 return sourceLines; 413 } 410 414 void NextSourceLine(); 411 415 };
Note:
See TracChangeset
for help on using the changeset viewer.