aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorYusra Syeda <yusra.syeda@ibm.com>2023-06-28 10:13:10 -0400
committerYusra Syeda <yusra.syeda@ibm.com>2023-06-28 10:13:10 -0400
commit9df0f66af5462e23216eae31aedbd4d2f459cc3d (patch)
tree92b69f0a595c6d04544610888f49a3ad194c1b33 /llvm/lib/MC/MCObjectFileInfo.cpp
parentc8e9c440193fd87f7fa42edd7494df9da376dae2 (diff)
downloadllvm-9df0f66af5462e23216eae31aedbd4d2f459cc3d.zip
llvm-9df0f66af5462e23216eae31aedbd4d2f459cc3d.tar.gz
llvm-9df0f66af5462e23216eae31aedbd4d2f459cc3d.tar.bz2
[SystemZ][z/OS] This patch adds support for the ADA (associated data area), doing the following:
- Creates the ADA table to handle displacements - Emits the ADA section in the SystemZAsmPrinter - Lowers the ADA_ENTRY node into the appropriate load instruction Differential Revision: https://reviews.llvm.org/D153788
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index 9fceaa2..df2085e 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -542,6 +542,8 @@ void MCObjectFileInfo::initGOFFMCObjectFileInfo(const Triple &T) {
PPA1Section =
Ctx->getGOFFSection(".ppa1", SectionKind::getMetadata(), TextSection,
MCConstantExpr::create(GOFF::SK_PPA1, *Ctx));
+ ADASection =
+ Ctx->getGOFFSection(".ada", SectionKind::getData(), nullptr, nullptr);
}
void MCObjectFileInfo::initCOFFMCObjectFileInfo(const Triple &T) {