aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCContext.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/MCContext.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/MCContext.cpp')
-rw-r--r--llvm/lib/MC/MCContext.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp
index 827fe69..887969f 100644
--- a/llvm/lib/MC/MCContext.cpp
+++ b/llvm/lib/MC/MCContext.cpp
@@ -634,11 +634,14 @@ Optional<unsigned> MCContext::getELFUniqueIDForEntsize(StringRef SectionName,
return (I != ELFEntrySizeMap.end()) ? Optional<unsigned>(I->second) : None;
}
-MCSectionGOFF *MCContext::getGOFFSection(StringRef Section, SectionKind Kind) {
+MCSectionGOFF *MCContext::getGOFFSection(StringRef Section, SectionKind Kind,
+ MCSection *Parent,
+ const MCExpr *SubsectionId) {
// Do the lookup. If we don't have a hit, return a new section.
auto &GOFFSection = GOFFUniquingMap[Section.str()];
if (!GOFFSection)
- GOFFSection = new (GOFFAllocator.Allocate()) MCSectionGOFF(Section, Kind);
+ GOFFSection = new (GOFFAllocator.Allocate())
+ MCSectionGOFF(Section, Kind, Parent, SubsectionId);
return GOFFSection;
}