1 //===--- Flang.h - Flang Tool and ToolChain Implementations ====-*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_FLANG_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_FLANG_H
12 #include "clang/Driver/Tool.h"
13 #include "clang/Driver/Action.h"
14 #include "clang/Driver/Compilation.h"
15 #include "clang/Driver/ToolChain.h"
16 #include "llvm/Option/ArgList.h"
17 #include "llvm/Support/Compiler.h"
24 /// Flang compiler tool.
25 class LLVM_LIBRARY_VISIBILITY Flang : public Tool {
27 Flang(const ToolChain &TC);
30 bool hasGoodDiagnostics() const override { return true; }
31 bool hasIntegratedAssembler() const override { return true; }
32 bool hasIntegratedCPP() const override { return true; }
33 bool canEmitIR() const override { return true; }
35 void ConstructJob(Compilation &C, const JobAction &JA,
36 const InputInfo &Output, const InputInfoList &Inputs,
37 const llvm::opt::ArgList &TCArgs,
38 const char *LinkingOutput) const override;
41 } // end namespace tools
43 } // end namespace driver
44 } // end namespace clang
46 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_FLANG_H