xref: /freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/InterfaceStubs.h (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1 //===---  InterfaceStubs.cpp - Base InterfaceStubs Implementations C++  ---===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_IFS_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_IFS_H
11 
12 #include "clang/Driver/Tool.h"
13 #include "clang/Driver/ToolChain.h"
14 
15 namespace clang {
16 namespace driver {
17 namespace tools {
18 namespace ifstool {
19 class LLVM_LIBRARY_VISIBILITY Merger : public Tool {
20 public:
21   Merger(const ToolChain &TC) : Tool("IFS::Merger", "llvm-ifs", TC) {}
22 
23   bool hasIntegratedCPP() const override { return false; }
24   bool isLinkJob() const override { return false; }
25 
26   void ConstructJob(Compilation &C, const JobAction &JA,
27                     const InputInfo &Output, const InputInfoList &Inputs,
28                     const llvm::opt::ArgList &TCArgs,
29                     const char *LinkingOutput) const override;
30 };
31 } // end namespace ifstool
32 } // end namespace tools
33 } // end namespace driver
34 } // end namespace clang
35 
36 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_IFS_H
37