[opengtl-commits] [458] use the linked module in the VM

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


Revision: 458
Author:   cyrille
Date:     2008-10-18 09:21:42 +0200 (Sat, 18 Oct 2008)

Log Message:
-----------
use the linked module in the VM

Modified Paths:
--------------
    trunk/OpenGTL/OpenCTL/OpenCTL/Module.cpp


Modified: trunk/OpenGTL/OpenCTL/OpenCTL/Module.cpp
===================================================================
--- trunk/OpenGTL/OpenCTL/OpenCTL/Module.cpp	2008-10-17 07:55:31 UTC (rev 457)
+++ trunk/OpenGTL/OpenCTL/OpenCTL/Module.cpp	2008-10-18 07:21:42 UTC (rev 458)
@@ -125,9 +125,9 @@
   if(result)
   {
     d->compiled = true;
-    d->moduleProvider = new llvm::ExistingModuleProvider( d->moduleData->llvmModule() );
+    d->moduleData->doLink();
+    d->moduleProvider = new llvm::ExistingModuleProvider( d->moduleData->llvmLinkedModule() );
     GTLCore::VirtualMachine::instance()->registerModule( d->moduleProvider );
-    d->moduleData->doLink();
   } else {
     delete d->moduleData;
     d->moduleData = 0;


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