ZOS.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ZOS_H
  9. #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ZOS_H
  10. #include "clang/Driver/Tool.h"
  11. #include "clang/Driver/ToolChain.h"
  12. namespace clang {
  13. namespace driver {
  14. namespace toolchains {
  15. class LLVM_LIBRARY_VISIBILITY ZOS : public ToolChain {
  16. public:
  17. ZOS(const Driver &D, const llvm::Triple &Triple,
  18. const llvm::opt::ArgList &Args);
  19. ~ZOS() override;
  20. bool isPICDefault() const override { return false; }
  21. bool isPIEDefault(const llvm::opt::ArgList &Args) const override {
  22. return false;
  23. }
  24. bool isPICDefaultForced() const override { return false; }
  25. bool IsIntegratedAssemblerDefault() const override { return true; }
  26. void addClangTargetOptions(
  27. const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args,
  28. Action::OffloadKind DeviceOffloadingKind) const override;
  29. };
  30. } // end namespace toolchains
  31. } // end namespace driver
  32. } // end namespace clang
  33. #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ZOS_H