[Instrumentation] Fix a warning
[llvm-project.git] / clang / lib / Driver / ToolChains / CSKYToolChain.h
bloba57324a426416d98b09b7a6013da3e3f6053fb2d
1 //===--- CSKYToolchain.h - CSKY ToolChain 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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_CSKYTOOLCHAIN_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_CSKYTOOLCHAIN_H
12 #include "Gnu.h"
13 #include "clang/Driver/ToolChain.h"
15 namespace clang {
16 namespace driver {
17 namespace toolchains {
19 class LLVM_LIBRARY_VISIBILITY CSKYToolChain : public Generic_ELF {
20 public:
21 CSKYToolChain(const Driver &D, const llvm::Triple &Triple,
22 const llvm::opt::ArgList &Args);
24 void addClangTargetOptions(const llvm::opt::ArgList &DriverArgs,
25 llvm::opt::ArgStringList &CC1Args,
26 Action::OffloadKind) const override;
27 RuntimeLibType GetDefaultRuntimeLibType() const override;
28 UnwindLibType GetUnwindLibType(const llvm::opt::ArgList &Args) const override;
29 void
30 AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs,
31 llvm::opt::ArgStringList &CC1Args) const override;
32 void
33 addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
34 llvm::opt::ArgStringList &CC1Args) const override;
36 protected:
37 Tool *buildLinker() const override;
39 private:
40 std::string computeSysRoot() const override;
43 } // end namespace toolchains
45 namespace tools {
46 namespace CSKY {
47 class LLVM_LIBRARY_VISIBILITY Linker final : public Tool {
48 public:
49 Linker(const ToolChain &TC) : Tool("CSKY::Linker", "ld", TC) {}
50 bool hasIntegratedCPP() const override { return false; }
51 bool isLinkJob() const override { return true; }
52 void ConstructJob(Compilation &C, const JobAction &JA,
53 const InputInfo &Output, const InputInfoList &Inputs,
54 const llvm::opt::ArgList &TCArgs,
55 const char *LinkingOutput) const override;
57 } // end namespace CSKY
58 } // end namespace tools
60 } // end namespace driver
61 } // end namespace clang
63 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_CSKYTOOLCHAIN_H