-
Notifications
You must be signed in to change notification settings - Fork 12.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SystemZ][z/OS] Adding initial toolchain for z/OS
This patch adds the initial toolchain for z/OS that will set some defaults. In subsequent patches, we plan to add support to use the system linker and assembler. Reviewed By: hubert.reinterpretcast Differential Revision: https://reviews.llvm.org/D86707
- Loading branch information
1 parent
68717ac
commit 3e1e5f5
Showing
4 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
//===--- ZOS.cpp - z/OS ToolChain Implementations ---------------*- C++ -*-===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#include "ZOS.h" | ||
#include "CommonArgs.h" | ||
#include "clang/Driver/Compilation.h" | ||
#include "clang/Driver/Options.h" | ||
#include "llvm/Option/ArgList.h" | ||
|
||
using namespace clang::driver::toolchains; | ||
using namespace llvm::opt; | ||
|
||
ZOS::ZOS(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) | ||
: ToolChain(D, Triple, Args) {} | ||
|
||
ZOS::~ZOS() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
//===--- ZOS.h - z/OS ToolChain Implementations -----------------*- C++ -*-===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ZOS_H | ||
#define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ZOS_H | ||
|
||
#include "clang/Driver/Tool.h" | ||
#include "clang/Driver/ToolChain.h" | ||
|
||
namespace clang { | ||
namespace driver { | ||
namespace toolchains { | ||
|
||
class LLVM_LIBRARY_VISIBILITY ZOS : public ToolChain { | ||
public: | ||
ZOS(const Driver &D, const llvm::Triple &Triple, | ||
const llvm::opt::ArgList &Args); | ||
~ZOS() override; | ||
|
||
bool isPICDefault() const override { return false; } | ||
bool isPIEDefault() const override { return false; } | ||
bool isPICDefaultForced() const override { return false; } | ||
|
||
bool IsIntegratedAssemblerDefault() const override { return true; } | ||
}; | ||
|
||
} // end namespace toolchains | ||
} // end namespace driver | ||
} // end namespace clang | ||
|
||
#endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ZOS_H |