clang  15.0.0git
ZOS.h
Go to the documentation of this file.
1 //===--- ZOS.h - z/OS 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 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ZOS_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ZOS_H
11 
12 #include "clang/Driver/Tool.h"
13 #include "clang/Driver/ToolChain.h"
14 
15 namespace clang {
16 namespace driver {
17 namespace toolchains {
18 
19 class LLVM_LIBRARY_VISIBILITY ZOS : public ToolChain {
20 public:
21  ZOS(const Driver &D, const llvm::Triple &Triple,
22  const llvm::opt::ArgList &Args);
23  ~ZOS() override;
24 
25  bool isPICDefault() const override { return false; }
26  bool isPIEDefault(const llvm::opt::ArgList &Args) const override {
27  return false;
28  }
29  bool isPICDefaultForced() const override { return false; }
30 
31  bool IsIntegratedAssemblerDefault() const override { return true; }
32 
33  unsigned GetDefaultDwarfVersion() const override { return 4; }
34 
35  void addClangTargetOptions(
36  const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args,
37  Action::OffloadKind DeviceOffloadingKind) const override;
38 };
39 
40 } // end namespace toolchains
41 } // end namespace driver
42 } // end namespace clang
43 
44 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ZOS_H
clang::driver::toolchains::ZOS::IsIntegratedAssemblerDefault
bool IsIntegratedAssemblerDefault() const override
IsIntegratedAssemblerDefault - Does this tool chain enable -integrated-as by default.
Definition: ZOS.h:31
clang::driver::toolchains::ZOS::isPICDefaultForced
bool isPICDefaultForced() const override
Tests whether this toolchain forces its default for PIC, PIE or non-PIC.
Definition: ZOS.h:29
Tool.h
clang::driver::toolchains::ZOS::isPIEDefault
bool isPIEDefault(const llvm::opt::ArgList &Args) const override
Test whether this toolchain defaults to PIE.
Definition: ZOS.h:26
ToolChain.h
clang::driver::ToolChain
ToolChain - Access to tools for a single platform.
Definition: ToolChain.h:91
clang::driver::toolchains::ZOS
Definition: ZOS.h:19
clang::driver::toolchains::ZOS::isPICDefault
bool isPICDefault() const override
Test whether this toolchain defaults to PIC.
Definition: ZOS.h:25
clang
Definition: CalledOnceCheck.h:17
clang::driver::Driver
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:72
clang::driver::Action::OffloadKind
OffloadKind
Definition: Action.h:88
clang::driver::toolchains::ZOS::GetDefaultDwarfVersion
unsigned GetDefaultDwarfVersion() const override
Definition: ZOS.h:33