[cfe-commits] r67170 - in /cfe/trunk: include/clang/Driver/Tool.h lib/Driver/Driver.cpp lib/Driver/Tools.cpp lib/Driver/Tools.h

Daniel Dunbar daniel at zuster.org
Tue Mar 17 23:07:59 PDT 2009


Author: ddunbar
Date: Wed Mar 18 01:07:59 2009
New Revision: 67170

URL: http://llvm.org/viewvc/llvm-project?rev=67170&view=rev
Log:
Driver: Add a dash of const.

Modified:
    cfe/trunk/include/clang/Driver/Tool.h
    cfe/trunk/lib/Driver/Driver.cpp
    cfe/trunk/lib/Driver/Tools.cpp
    cfe/trunk/lib/Driver/Tools.h

Modified: cfe/trunk/include/clang/Driver/Tool.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Tool.h?rev=67170&r1=67169&r2=67170&view=diff

==============================================================================
--- cfe/trunk/include/clang/Driver/Tool.h (original)
+++ cfe/trunk/include/clang/Driver/Tool.h Wed Mar 18 01:07:59 2009
@@ -54,7 +54,8 @@
   /// \param LinkingOutput - If this output will eventually feed the
   /// linker, then this is the final output name of the linked image.
   virtual void ConstructJob(Compilation &C, const JobAction &JA,
-                            InputInfo &Output, InputInfoList &Inputs, 
+                            const InputInfo &Output, 
+                            const InputInfoList &Inputs, 
                             const ArgList &TCArgs, 
                             const char *LinkingOutput) const = 0;
 };

Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=67170&r1=67169&r2=67170&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Wed Mar 18 01:07:59 2009
@@ -446,7 +446,6 @@
     } else if (A->getOption().isLinkerInput()) {
       // Just treat as object type, we could make a special type for
       // this if necessary.
-      A->claim();
       Inputs.push_back(std::make_pair(types::TY_Object, A));
 
     } else if (A->getOption().getId() == options::OPT_x) {

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=67170&r1=67169&r2=67170&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Mar 18 01:07:59 2009
@@ -13,42 +13,47 @@
 using namespace clang::driver::tools;
 
 void Clang::ConstructJob(Compilation &C, const JobAction &JA,
-                         InputInfo &Output, InputInfoList &Inputs,
+                         const InputInfo &Output, 
+                         const InputInfoList &Inputs,
                          const ArgList &TCArgs,
                          const char *LinkingOutput) const {
-
 }
 
 void gcc::Preprocess::ConstructJob(Compilation &C, const JobAction &JA,
-                                   InputInfo &Output, InputInfoList &Inputs,
+                                   const InputInfo &Output, 
+                                   const InputInfoList &Inputs,
                                    const ArgList &TCArgs,
                                    const char *LinkingOutput) const {
 
 }
 
 void gcc::Precompile::ConstructJob(Compilation &C, const JobAction &JA,
-                                   InputInfo &Output, InputInfoList &Inputs,
+                                   const InputInfo &Output, 
+                                   const InputInfoList &Inputs,
                                    const ArgList &TCArgs,
                                    const char *LinkingOutput) const {
 
 }
 
 void gcc::Compile::ConstructJob(Compilation &C, const JobAction &JA,
-                                InputInfo &Output, InputInfoList &Inputs,
+                                const InputInfo &Output, 
+                                const InputInfoList &Inputs,
                                 const ArgList &TCArgs,
                                 const char *LinkingOutput) const {
 
 }
 
 void gcc::Assemble::ConstructJob(Compilation &C, const JobAction &JA,
-                                 InputInfo &Output, InputInfoList &Inputs,
+                                 const InputInfo &Output, 
+                                 const InputInfoList &Inputs,
                                  const ArgList &TCArgs,
                                  const char *LinkingOutput) const {
 
 }
 
 void gcc::Link::ConstructJob(Compilation &C, const JobAction &JA,
-                             InputInfo &Output, InputInfoList &Inputs,
+                             const InputInfo &Output, 
+                             const InputInfoList &Inputs,
                              const ArgList &TCArgs,
                              const char *LinkingOutput) const {
 

Modified: cfe/trunk/lib/Driver/Tools.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.h?rev=67170&r1=67169&r2=67170&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/Tools.h (original)
+++ cfe/trunk/lib/Driver/Tools.h Wed Mar 18 01:07:59 2009
@@ -27,7 +27,8 @@
     virtual bool hasIntegratedCPP() const { return true; }
 
     virtual void ConstructJob(Compilation &C, const JobAction &JA,
-                              InputInfo &Output, InputInfoList &Inputs, 
+                              const InputInfo &Output, 
+                              const InputInfoList &Inputs, 
                               const ArgList &TCArgs, 
                               const char *LinkingOutput) const;
   };
@@ -43,7 +44,8 @@
     virtual bool hasIntegratedCPP() const { return false; }
 
     virtual void ConstructJob(Compilation &C, const JobAction &JA,
-                              InputInfo &Output, InputInfoList &Inputs, 
+                              const InputInfo &Output, 
+                              const InputInfoList &Inputs, 
                               const ArgList &TCArgs, 
                               const char *LinkingOutput) const;
   };
@@ -57,7 +59,8 @@
     virtual bool hasIntegratedCPP() const { return true; }
 
     virtual void ConstructJob(Compilation &C, const JobAction &JA,
-                              InputInfo &Output, InputInfoList &Inputs, 
+                              const InputInfo &Output, 
+                              const InputInfoList &Inputs, 
                               const ArgList &TCArgs, 
                               const char *LinkingOutput) const;
   };
@@ -71,7 +74,8 @@
     virtual bool hasIntegratedCPP() const { return true; }
 
     virtual void ConstructJob(Compilation &C, const JobAction &JA,
-                              InputInfo &Output, InputInfoList &Inputs, 
+                              const InputInfo &Output, 
+                              const InputInfoList &Inputs, 
                               const ArgList &TCArgs, 
                               const char *LinkingOutput) const;
   };
@@ -85,7 +89,8 @@
     virtual bool hasIntegratedCPP() const { return false; }
 
     virtual void ConstructJob(Compilation &C, const JobAction &JA,
-                              InputInfo &Output, InputInfoList &Inputs, 
+                              const InputInfo &Output, 
+                              const InputInfoList &Inputs, 
                               const ArgList &TCArgs, 
                               const char *LinkingOutput) const;
   };
@@ -99,7 +104,8 @@
     virtual bool hasIntegratedCPP() const { return false; }
 
     virtual void ConstructJob(Compilation &C, const JobAction &JA,
-                              InputInfo &Output, InputInfoList &Inputs, 
+                              const InputInfo &Output, 
+                              const InputInfoList &Inputs, 
                               const ArgList &TCArgs, 
                               const char *LinkingOutput) const;
   };





More information about the cfe-commits mailing list