Skip to content

Commit 0b54967

Browse files
committed
Remove DuplicateSymbolSeverity since it is not required.
1 parent a4b425f commit 0b54967

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

llvm/include/llvm/MC/MCGOFFAttributes.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ struct PRAttr {
7878
GOFF::ESDExecutable Executable = GOFF::ESD_EXE_Unspecified;
7979
GOFF::ESDLinkageType Linkage = GOFF::ESD_LT_XPLink;
8080
GOFF::ESDBindingScope BindingScope = GOFF::ESD_BSC_Unspecified;
81-
GOFF::ESDDuplicateSymbolSeverity DuplicateSymbolSeverity =
82-
GOFF::ESD_DSS_NoWarning;
8381
GOFF::ESDAlignment Alignment = GOFF::ESD_ALIGN_Byte;
8482
uint32_t SortKey = 0;
8583
};

llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2804,8 +2804,7 @@ MCSection *TargetLoweringObjectFileGOFF::getSectionForLSDA(
28042804
return getContext().getGOFFSection(
28052805
SectionKind::getData(), Name,
28062806
GOFF::PRAttr{true, false, GOFF::ESD_EXE_Unspecified, GOFF::LINKAGE,
2807-
GOFF::ESD_BSC_Section, GOFF::ESD_DSS_NoWarning,
2808-
GOFF::ESD_ALIGN_Fullword, 0},
2807+
GOFF::ESD_BSC_Section, GOFF::ESD_ALIGN_Fullword, 0},
28092808
WSA);
28102809
}
28112810

@@ -2835,7 +2834,7 @@ MCSection *TargetLoweringObjectFileGOFF::SelectSectionForGlobal(
28352834
return getContext().getGOFFSection(
28362835
Kind, Symbol->getName(),
28372836
GOFF::PRAttr{false, false, GOFF::ESD_EXE_DATA, GOFF::LINKAGE,
2838-
PRBindingScope, GOFF::ESD_DSS_NoWarning,
2837+
PRBindingScope,
28392838
static_cast<GOFF::ESDAlignment>(GO->getAlignment()), 0},
28402839
ED);
28412840
}

llvm/lib/MC/GOFFObjectWriter.cpp

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

llvm/lib/MC/MCObjectFileInfo.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -561,8 +561,7 @@ void MCObjectFileInfo::initGOFFMCObjectFileInfo(const Triple &T) {
561561
ADASection = Ctx->getGOFFSection(
562562
SectionKind::getData(), "#S",
563563
GOFF::PRAttr{false, false, GOFF::ESD_EXE_DATA, GOFF::ESD_LT_XPLink,
564-
GOFF::ESD_BSC_Section, GOFF::ESD_DSS_NoWarning,
565-
GOFF::ESD_ALIGN_Quadword, 0},
564+
GOFF::ESD_BSC_Section, GOFF::ESD_ALIGN_Quadword, 0},
566565
ADAEDSection);
567566

568567
TextSection = Ctx->getGOFFSection(
@@ -583,8 +582,7 @@ void MCObjectFileInfo::initGOFFMCObjectFileInfo(const Triple &T) {
583582
PPA2ListSection = Ctx->getGOFFSection(
584583
SectionKind::getData(), ".&ppa2",
585584
GOFF::PRAttr{true, false, GOFF::ESD_EXE_Unspecified, GOFF::ESD_LT_OS,
586-
GOFF::ESD_BSC_Section, GOFF::ESD_DSS_NoWarning,
587-
GOFF::ESD_ALIGN_Doubleword, 0},
585+
GOFF::ESD_BSC_Section, GOFF::ESD_ALIGN_Doubleword, 0},
588586
PPA2ListEDSection);
589587

590588
IDRLSection = Ctx->getGOFFSection(

0 commit comments

Comments
 (0)