[docs] Fix build-docs.sh
[llvm-project.git] / clang / lib / Driver / ToolChains / HLSL.h
blob5573b0cc69e2530cae43365f4001fe8552bfd4bc
1 //===--- HLSL.h - HLSL 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_HLSL_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HLSL_H
12 #include "clang/Driver/ToolChain.h"
14 namespace clang {
15 namespace driver {
17 namespace toolchains {
19 class LLVM_LIBRARY_VISIBILITY HLSLToolChain : public ToolChain {
20 public:
21 HLSLToolChain(const Driver &D, const llvm::Triple &Triple,
22 const llvm::opt::ArgList &Args);
23 bool isPICDefault() const override { return false; }
24 bool isPIEDefault(const llvm::opt::ArgList &Args) const override {
25 return false;
27 bool isPICDefaultForced() const override { return false; }
29 llvm::opt::DerivedArgList *
30 TranslateArgs(const llvm::opt::DerivedArgList &Args, StringRef BoundArch,
31 Action::OffloadKind DeviceOffloadKind) const override;
32 static llvm::Optional<std::string>
33 parseTargetProfile(StringRef TargetProfile);
36 } // end namespace toolchains
37 } // end namespace driver
38 } // end namespace clang
40 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HLSL_H