1 //===--- ZOS.h - z/OS 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_ZOS_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ZOS_H
12 #include "clang/Driver/Tool.h"
13 #include "clang/Driver/ToolChain.h"
17 namespace toolchains
{
19 class LLVM_LIBRARY_VISIBILITY ZOS
: public ToolChain
{
21 ZOS(const Driver
&D
, const llvm::Triple
&Triple
,
22 const llvm::opt::ArgList
&Args
);
25 bool isPICDefault() const override
{ return false; }
26 bool isPIEDefault(const llvm::opt::ArgList
&Args
) const override
{
29 bool isPICDefaultForced() const override
{ return false; }
31 bool IsIntegratedAssemblerDefault() const override
{ return true; }
33 unsigned GetDefaultDwarfVersion() const override
{ return 4; }
35 void addClangTargetOptions(
36 const llvm::opt::ArgList
&DriverArgs
, llvm::opt::ArgStringList
&CC1Args
,
37 Action::OffloadKind DeviceOffloadingKind
) const override
;
40 } // end namespace toolchains
41 } // end namespace driver
42 } // end namespace clang
44 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ZOS_H