[opengtl-commits] [167] fix some of the regressions, the code generator is now correctly initialised with a non-null module data

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 167
Author:   cyrille
Date:     2008-05-19 09:26:03 +0200 (Mon, 19 May 2008)

Log Message:
-----------
fix some of the regressions, the code generator is now correctly initialised with a non-null module data

Modified Paths:
--------------
    trunk/OpenGTL/OpenCTL/OpenCTL/compiler/Compiler.cpp
    trunk/OpenGTL/OpenShiva/OpenShiva/Compiler_p.cpp


Modified: trunk/OpenGTL/OpenCTL/OpenCTL/compiler/Compiler.cpp
===================================================================
--- trunk/OpenGTL/OpenCTL/OpenCTL/compiler/Compiler.cpp	2008-05-18 22:32:39 UTC (rev 166)
+++ trunk/OpenGTL/OpenCTL/OpenCTL/compiler/Compiler.cpp	2008-05-19 07:26:03 UTC (rev 167)
@@ -171,8 +171,8 @@
   
   // Create LLVM module
   d->module = moduleData->llvmModule();
+  d->moduleData = moduleData;
   d->codeGenerator = new GTLCore::CodeGenerator( moduleData );
-  d->moduleData = moduleData;
 
   // Create Standard Library functions
   // CtlStdLib functions (except print which get a special treatement)

Modified: trunk/OpenGTL/OpenShiva/OpenShiva/Compiler_p.cpp
===================================================================
--- trunk/OpenGTL/OpenShiva/OpenShiva/Compiler_p.cpp	2008-05-18 22:32:39 UTC (rev 166)
+++ trunk/OpenGTL/OpenShiva/OpenShiva/Compiler_p.cpp	2008-05-19 07:26:03 UTC (rev 167)
@@ -63,8 +63,8 @@
   // Initialise the module structure
   SHIVA_ASSERT( d->module == 0 );
   d->module = _moduleData->llvmModule();
+  d->moduleData = _moduleData;
   d->codeGenerator = new GTLCore::CodeGenerator( d->moduleData );
-  d->moduleData = _moduleData;
   
   // Init the lexer
   std::istringstream iss(_sourceCode);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/