diff options
author | Yusra Syeda <yusra.syeda@ibm.com> | 2022-05-18 13:05:11 -0400 |
---|---|---|
committer | Yusra Syeda <yusra.syeda@ibm.com> | 2022-05-18 14:13:17 -0400 |
commit | 5ac411aea802f5983b7979b9198ba7d8fb38f64d (patch) | |
tree | 66a27848b1d0177d17187d386f5ddb9f3cea5b50 /llvm/lib/MC/MCContext.cpp | |
parent | 4d8268fbf4cd30d39530622b7f1dc487122b4f3c (diff) | |
download | llvm-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.cpp | 7 |
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; } |