aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ObjectFile.cpp
diff options
context:
space:
mode:
authorNeumann Hon <neumann.hon@ibm.com>2023-04-28 19:00:45 -0400
committerNeumann Hon <neumann.hon@ibm.com>2023-04-28 19:00:45 -0400
commit5b2423183cb35703723ec91ce5b93b99cec36fb2 (patch)
treebf2e2581dd76321d9b7c534f7ccb42448302f6f7 /llvm/lib/Object/ObjectFile.cpp
parentba3cbc7aadf9d47d3eb177934b9e7b8e852a9857 (diff)
downloadllvm-5b2423183cb35703723ec91ce5b93b99cec36fb2.zip
llvm-5b2423183cb35703723ec91ce5b93b99cec36fb2.tar.gz
llvm-5b2423183cb35703723ec91ce5b93b99cec36fb2.tar.bz2
[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
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
-rw-r--r--llvm/lib/Object/ObjectFile.cpp4
1 files changed, 4 insertions, 0 deletions
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;
}