]> granicus.if.org Git - clang/commitdiff
Derive nacltools::Linker from GnuTool to get response file support
authorDerek Schuff <dschuff@google.com>
Mon, 16 Nov 2015 22:21:25 +0000 (22:21 +0000)
committerDerek Schuff <dschuff@google.com>
Mon, 16 Nov 2015 22:21:25 +0000 (22:21 +0000)
It could be derived from gnutools::Linker directly but this way makes it
consistent with all the other toolchains around it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253259 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.h

index be68ff134b24f37b68e4af635f229e1a1ef99b9d..7a7c642e3560dabc0d980108358bf2392479daf2 100644 (file)
@@ -555,9 +555,9 @@ public:
                     const char *LinkingOutput) const override;
 };
 
-class LLVM_LIBRARY_VISIBILITY Linker : public Tool {
+class LLVM_LIBRARY_VISIBILITY Linker : public GnuTool {
 public:
-  Linker(const ToolChain &TC) : Tool("NaCl::Linker", "linker", TC) {}
+  Linker(const ToolChain &TC) : GnuTool("NaCl::Linker", "linker", TC) {}
 
   bool hasIntegratedCPP() const override { return false; }
   bool isLinkJob() const override { return true; }