From 5b2423183cb35703723ec91ce5b93b99cec36fb2 Mon Sep 17 00:00:00 2001 From: Neumann Hon Date: Fri, 28 Apr 2023 19:00:45 -0400 Subject: [SystemZ][z/OS] Add GOFFObjectFile class support for HDR, ESD and END records This patch details the GOFF file format and implements the GOFFObjectfile class with support for only the HDR, ESD and END GOFF records. Reviewed By: jhenderson, kpn Differential Revision: https://reviews.llvm.org/D98437 --- llvm/lib/Object/ObjectFile.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/lib/Object/ObjectFile.cpp') diff --git a/llvm/lib/Object/ObjectFile.cpp b/llvm/lib/Object/ObjectFile.cpp index 56a1d09..c953a56 100644 --- a/llvm/lib/Object/ObjectFile.cpp +++ b/llvm/lib/Object/ObjectFile.cpp @@ -130,6 +130,10 @@ Triple ObjectFile::makeTriple() const { TheTriple.setOS(Triple::AIX); TheTriple.setObjectFormat(Triple::XCOFF); } + else if (isGOFF()) { + TheTriple.setOS(Triple::ZOS); + TheTriple.setObjectFormat(Triple::GOFF); + } return TheTriple; } -- cgit v1.1