[cfe-commits] r81010 - in /cfe/trunk/lib/Driver: ToolChains.cpp Tools.h

Daniel Dunbar daniel at zuster.org
Fri Sep 4 10:39:02 PDT 2009


Author: ddunbar
Date: Fri Sep  4 12:39:02 2009
New Revision: 81010

URL: http://llvm.org/viewvc/llvm-project?rev=81010&view=rev
Log:
Remove unused argument.

Modified:
    cfe/trunk/lib/Driver/ToolChains.cpp
    cfe/trunk/lib/Driver/Tools.h

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

==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Fri Sep  4 12:39:02 2009
@@ -120,7 +120,7 @@
     case Action::AssembleJobClass:
       T = new tools::darwin::Assemble(*this); break;
     case Action::LinkJobClass:
-      T = new tools::darwin::Link(*this, MacosxVersionMin.c_str()); break;
+      T = new tools::darwin::Link(*this); break;
     case Action::LipoJobClass:
       T = new tools::darwin::Lipo(*this); break;
     }

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

==============================================================================
--- cfe/trunk/lib/Driver/Tools.h (original)
+++ cfe/trunk/lib/Driver/Tools.h Fri Sep  4 12:39:02 2009
@@ -201,15 +201,11 @@
     void AddDarwinSubArch(const ArgList &Args, ArgStringList &CmdArgs) const;
     void AddLinkArgs(const ArgList &Args, ArgStringList &CmdArgs) const;
 
-    /// The default macosx-version-min.
-    const char *MacosxVersionMin;
-
     const toolchains::Darwin_X86 &getDarwinToolChain() const;
 
   public:
-    Link(const ToolChain &TC,
-         const char *_MacosxVersionMin) 
-      : Tool("darwin::Link", TC), MacosxVersionMin(_MacosxVersionMin) {
+    Link(const ToolChain &TC)
+      : Tool("darwin::Link", TC) {
     }
 
     virtual bool acceptsPipedInput() const { return false; }





More information about the cfe-commits mailing list