Skip to content

Commit 005bd75

Browse files
committed
Remove ReadOnly attribute for PR elements
1 parent 2f6babe commit 005bd75

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

llvm/include/llvm/MC/MCGOFFAttributes.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ struct LDAttr {
7373
// Attributes for PR symbols.
7474
struct PRAttr {
7575
bool IsRenamable = false;
76-
bool IsReadOnly = false; // ???? Not documented.
7776
GOFF::ESDExecutable Executable = GOFF::ESD_EXE_Unspecified;
7877
GOFF::ESDLinkageType Linkage = GOFF::ESD_LT_XPLink;
7978
GOFF::ESDBindingScope BindingScope = GOFF::ESD_BSC_Unspecified;

llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2804,7 +2804,7 @@ MCSection *TargetLoweringObjectFileGOFF::getSectionForLSDA(
28042804
static_cast<MCSectionGOFF *>(TextSection)->getParent());
28052805
return getContext().getGOFFSection(
28062806
SectionKind::getData(), Name,
2807-
GOFF::PRAttr{true, false, GOFF::ESD_EXE_DATA, GOFF::LINKAGE,
2807+
GOFF::PRAttr{true, GOFF::ESD_EXE_DATA, GOFF::LINKAGE,
28082808
GOFF::ESD_BSC_Section, GOFF::ESD_ALIGN_Fullword, 0},
28092809
WSA);
28102810
}
@@ -2834,11 +2834,11 @@ MCSection *TargetLoweringObjectFileGOFF::SelectSectionForGlobal(
28342834
GOFF::ESD_TS_ByteOriented, GOFF::ESD_BA_Merge,
28352835
GOFF::ESD_LB_Deferred, GOFF::ESD_RQ_0, Align},
28362836
SD);
2837-
return getContext().getGOFFSection(
2838-
Kind, Symbol->getName(),
2839-
GOFF::PRAttr{false, false, GOFF::ESD_EXE_DATA, GOFF::LINKAGE,
2840-
PRBindingScope, Align, 0},
2841-
ED);
2837+
return getContext().getGOFFSection(Kind, Symbol->getName(),
2838+
GOFF::PRAttr{false, GOFF::ESD_EXE_DATA,
2839+
GOFF::LINKAGE,
2840+
PRBindingScope, Align, 0},
2841+
ED);
28422842
}
28432843
return TextSection;
28442844
}

llvm/lib/MC/GOFFObjectWriter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ class GOFFSymbol {
266266
BehavAttrs.setAlignment(Attr.Alignment);
267267
BehavAttrs.setLinkageType(Attr.Linkage);
268268
BehavAttrs.setBindingScope(Attr.BindingScope);
269-
BehavAttrs.setReadOnly(Attr.IsReadOnly);
270269
}
271270
};
272271

llvm/lib/MC/MCObjectFileInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ void MCObjectFileInfo::initGOFFMCObjectFileInfo(const Triple &T) {
560560
RootSDSection);
561561
ADASection = Ctx->getGOFFSection(
562562
SectionKind::getData(), "#S",
563-
GOFF::PRAttr{false, false, GOFF::ESD_EXE_DATA, GOFF::ESD_LT_XPLink,
563+
GOFF::PRAttr{false, GOFF::ESD_EXE_DATA, GOFF::ESD_LT_XPLink,
564564
GOFF::ESD_BSC_Section, GOFF::ESD_ALIGN_Quadword, 0},
565565
ADAEDSection);
566566

@@ -581,7 +581,7 @@ void MCObjectFileInfo::initGOFFMCObjectFileInfo(const Triple &T) {
581581
RootSDSection);
582582
PPA2ListSection = Ctx->getGOFFSection(
583583
SectionKind::getData(), ".&ppa2",
584-
GOFF::PRAttr{true, false, GOFF::ESD_EXE_DATA, GOFF::ESD_LT_OS,
584+
GOFF::PRAttr{true, GOFF::ESD_EXE_DATA, GOFF::ESD_LT_OS,
585585
GOFF::ESD_BSC_Section, GOFF::ESD_ALIGN_Doubleword, 0},
586586
PPA2ListEDSection);
587587

llvm/lib/MC/MCSectionGOFF.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void MCSectionGOFF::printSwitchToSection(const MCAsmInfo &MAI, const Triple &T,
124124
if (!Emitted) {
125125
emitCATTR(OS, ED->getName(), ED->getEDAttributes().Rmode,
126126
PRAttributes.Alignment, ED->EDAttributes.LoadBehavior,
127-
PRAttributes.Executable, PRAttributes.IsReadOnly,
127+
PRAttributes.Executable, ED->EDAttributes.IsReadOnly,
128128
PRAttributes.SortKey, Name);
129129
emitXATTR(OS, Name, PRAttributes.Linkage, PRAttributes.Executable,
130130
PRAttributes.BindingScope);

0 commit comments

Comments
 (0)