[Transforms] Silence a warning in SROA.cpp (NFC)
[llvm-project.git] / clang / lib / Driver / ToolChains / TCE.h
blob31a64cfe878a76c49cd56f2f3e30fa6dbac0b7c8
1 //===--- TCE.h - TCE Tool and 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_TCE_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_TCE_H
12 #include "clang/Driver/Driver.h"
13 #include "clang/Driver/ToolChain.h"
14 #include <set>
16 namespace clang {
17 namespace driver {
18 namespace toolchains {
20 /// TCEToolChain - A tool chain using the llvm bitcode tools to perform
21 /// all subcommands. See http://tce.cs.tut.fi for our peculiar target.
22 class LLVM_LIBRARY_VISIBILITY TCEToolChain : public ToolChain {
23 public:
24 TCEToolChain(const Driver &D, const llvm::Triple &Triple,
25 const llvm::opt::ArgList &Args);
26 ~TCEToolChain() override;
28 bool IsMathErrnoDefault() const override;
29 bool isPICDefault() const override;
30 bool isPIEDefault(const llvm::opt::ArgList &Args) const override;
31 bool isPICDefaultForced() const override;
34 /// Toolchain for little endian TCE cores.
35 class LLVM_LIBRARY_VISIBILITY TCELEToolChain : public TCEToolChain {
36 public:
37 TCELEToolChain(const Driver &D, const llvm::Triple &Triple,
38 const llvm::opt::ArgList &Args);
39 ~TCELEToolChain() override;
42 } // end namespace toolchains
43 } // end namespace driver
44 } // end namespace clang
46 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_TCE_H