aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ObjectFile.cpp
diff options
context:
space:
mode:
authorYusra Syeda <yusra.syeda@ibm.com>2023-04-28 19:08:00 -0400
committerNeumann Hon <neumann.hon@ibm.com>2023-04-28 19:08:26 -0400
commit2fa6bcf02f1585df3af6d0081215e23c07421f43 (patch)
treed687749fb4bc11de2c12bc49739453470712c863 /llvm/lib/Object/ObjectFile.cpp
parent55da527ad822382bb4156c5ff9295209e0bccc5c (diff)
downloadllvm-2fa6bcf02f1585df3af6d0081215e23c07421f43.zip
llvm-2fa6bcf02f1585df3af6d0081215e23c07421f43.tar.gz
llvm-2fa6bcf02f1585df3af6d0081215e23c07421f43.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;
}