[opengtl-commits] [511] no more export to C

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


Revision: 511
Author:   cyrille
Date:     2008-12-01 23:39:03 +0100 (Mon, 01 Dec 2008)

Log Message:
-----------
no more export to C

Modified Paths:
--------------
    trunk/OpenGTL/OpenCTL/OpenCTL/Module.cpp
    trunk/OpenGTL/OpenCTL/OpenCTL/Module.h
    trunk/OpenGTL/OpenCTL/OpenCTL/Program.cpp
    trunk/OpenGTL/OpenCTL/tools/compiler/CtlC.cpp


Modified: trunk/OpenGTL/OpenCTL/OpenCTL/Module.cpp
===================================================================
--- trunk/OpenGTL/OpenCTL/OpenCTL/Module.cpp	2008-12-01 22:38:29 UTC (rev 510)
+++ trunk/OpenGTL/OpenCTL/OpenCTL/Module.cpp	2008-12-01 22:39:03 UTC (rev 511)
@@ -170,11 +170,6 @@
   return os.str();
 }
 
-GTLCore::String Module::cSourceCode() const
-{
-  return d->moduleData->asCCode();
-}
-
 std::list<GTLCore::Function*> Module::functions()
 {
   return d->moduleData->functions();

Modified: trunk/OpenGTL/OpenCTL/OpenCTL/Module.h
===================================================================
--- trunk/OpenGTL/OpenCTL/OpenCTL/Module.h	2008-12-01 22:38:29 UTC (rev 510)
+++ trunk/OpenGTL/OpenCTL/OpenCTL/Module.h	2008-12-01 22:39:03 UTC (rev 511)
@@ -101,10 +101,6 @@
        * @return the assembly source code, it's mostly usefull for testing purpose
        */
       GTLCore::String asmSourceCode() const;
-      /**
-       * @return the C source code, it's mostly usefull for testing purpose
-       */
-      GTLCore::String cSourceCode() const;
     private:
       struct Private;
       Private* const d;

Modified: trunk/OpenGTL/OpenCTL/OpenCTL/Program.cpp
===================================================================
--- trunk/OpenGTL/OpenCTL/OpenCTL/Program.cpp	2008-12-01 22:38:29 UTC (rev 510)
+++ trunk/OpenGTL/OpenCTL/OpenCTL/Program.cpp	2008-12-01 22:39:03 UTC (rev 511)
@@ -52,7 +52,6 @@
 // Passes
 #include <llvm/PassManager.h>
 #include <llvm/Analysis/LoopPass.h>
-#include <llvm/Analysis/LoadValueNumbering.h>
 #include <llvm/Analysis/Verifier.h>
 #include <llvm/Target/TargetData.h>
 #include <llvm/ExecutionEngine/ExecutionEngine.h>

Modified: trunk/OpenGTL/OpenCTL/tools/compiler/CtlC.cpp
===================================================================
--- trunk/OpenGTL/OpenCTL/tools/compiler/CtlC.cpp	2008-12-01 22:38:29 UTC (rev 510)
+++ trunk/OpenGTL/OpenCTL/tools/compiler/CtlC.cpp	2008-12-01 22:39:03 UTC (rev 511)
@@ -52,7 +52,6 @@
 {
   GTLCore::String fileName = "";
   bool showAssembly = false;
-  bool showAsC = false;
   for(int ai = 1; ai < argc; ai++)
   {
     if(ARG_IS("-h","--help"))
@@ -65,8 +64,6 @@
       return EXIT_SUCCESS;
     } else if(ARG_IS("-S","--asm-source")) {
       showAssembly = true;
-    } else if(ARG_IS("-C","--c-source")) {
-      showAsC = true;
     } else if(ARG_IS("-L", "--module-dir")) {
       if( ai == argc )
       {
@@ -116,10 +113,6 @@
     {
       std::cout << p.asmSourceCode();
     }
-    if( showAsC )
-    {
-      std::cout << p.cSourceCode();
-    }
   }
   return EXIT_SUCCESS;
 }


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