aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorYusra Syeda <yusra.syeda@ibm.com>2022-05-18 13:05:11 -0400
committerYusra Syeda <yusra.syeda@ibm.com>2022-05-18 14:13:17 -0400
commit5ac411aea802f5983b7979b9198ba7d8fb38f64d (patch)
tree66a27848b1d0177d17187d386f5ddb9f3cea5b50 /llvm/lib/MC/MCObjectFileInfo.cpp
parent4d8268fbf4cd30d39530622b7f1dc487122b4f3c (diff)
downloadllvm-5ac411aea802f5983b7979b9198ba7d8fb38f64d.zip
llvm-5ac411aea802f5983b7979b9198ba7d8fb38f64d.tar.gz
llvm-5ac411aea802f5983b7979b9198ba7d8fb38f64d.tar.bz2
[SystemZ][z/OS] Add the PPA1 to SystemZAsmPrinter
Differential Revision: https://reviews.llvm.org/D125725
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index 3ee8167..d56f72c 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -523,8 +523,13 @@ void MCObjectFileInfo::initELFMCObjectFileInfo(const Triple &T, bool Large) {
}
void MCObjectFileInfo::initGOFFMCObjectFileInfo(const Triple &T) {
- TextSection = Ctx->getGOFFSection(".text", SectionKind::getText());
- BSSSection = Ctx->getGOFFSection(".bss", SectionKind::getBSS());
+ TextSection =
+ Ctx->getGOFFSection(".text", SectionKind::getText(), nullptr, nullptr);
+ BSSSection =
+ Ctx->getGOFFSection(".bss", SectionKind::getBSS(), nullptr, nullptr);
+ PPA1Section =
+ Ctx->getGOFFSection(".ppa1", SectionKind::getMetadata(), TextSection,
+ MCConstantExpr::create(GOFF::SK_PPA1, *Ctx));
}
void MCObjectFileInfo::initCOFFMCObjectFileInfo(const Triple &T) {