Skip to content

Commit bb0e2f0

Browse files
committed
Remove lineno.
Created using spr 1.3.6
1 parent 21352cb commit bb0e2f0

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

llvm/include/llvm/Support/SpecialCaseList.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ class SpecialCaseList {
138138
std::unique_ptr<Matcher> SectionMatcher;
139139
SectionEntries Entries;
140140
std::string SectionStr;
141-
unsigned LineNo;
142141
};
143142

144143
std::vector<Section> Sections;

llvm/lib/Support/SpecialCaseList.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,12 @@ SpecialCaseList::addSection(StringRef SectionStr, unsigned LineNo,
139139
bool UseGlobs) {
140140
auto it =
141141
std::find_if(Sections.begin(), Sections.end(), [&](const Section &s) {
142-
return s.SectionStr == SectionStr && s.LineNo == LineNo;
142+
return s.SectionStr == SectionStr;
143143
});
144144
if (it == Sections.end()) {
145145
Sections.emplace_back();
146146
auto &sec = Sections.back();
147147
sec.SectionStr = SectionStr;
148-
sec.LineNo = LineNo;
149148
it = std::prev(Sections.end());
150149
}
151150
if (auto Err = it->SectionMatcher->insert(SectionStr, LineNo, UseGlobs)) {

0 commit comments

Comments
 (0)