aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp25
1 files changed, 9 insertions, 16 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index 35ac307..b718053 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -546,25 +546,18 @@ void MCObjectFileInfo::initELFMCObjectFileInfo(const Triple &T, bool Large) {
}
void MCObjectFileInfo::initGOFFMCObjectFileInfo(const Triple &T) {
- 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));
- PPA2Section =
- Ctx->getGOFFSection(".ppa2", SectionKind::getMetadata(), TextSection,
- MCConstantExpr::create(GOFF::SK_PPA2, *Ctx));
+ TextSection = Ctx->getGOFFSection(".text", SectionKind::getText(), nullptr);
+ BSSSection = Ctx->getGOFFSection(".bss", SectionKind::getBSS(), nullptr);
+ PPA1Section = Ctx->getGOFFSection(".ppa1", SectionKind::getMetadata(),
+ TextSection, GOFF::SK_PPA1);
+ PPA2Section = Ctx->getGOFFSection(".ppa2", SectionKind::getMetadata(),
+ TextSection, GOFF::SK_PPA2);
PPA2ListSection =
- Ctx->getGOFFSection(".ppa2list", SectionKind::getData(),
- nullptr, nullptr);
+ Ctx->getGOFFSection(".ppa2list", SectionKind::getData(), nullptr);
- ADASection =
- Ctx->getGOFFSection(".ada", SectionKind::getData(), nullptr, nullptr);
- IDRLSection =
- Ctx->getGOFFSection("B_IDRL", SectionKind::getData(), nullptr, nullptr);
+ ADASection = Ctx->getGOFFSection(".ada", SectionKind::getData(), nullptr);
+ IDRLSection = Ctx->getGOFFSection("B_IDRL", SectionKind::getData(), nullptr);
}
void MCObjectFileInfo::initCOFFMCObjectFileInfo(const Triple &T) {