Skip to content

Commit ae1e2ec

Browse files
authored
[NFC][SpecialCaseList] Rename Section::SectionStr to Name (#167279)
1 parent cdc6f85 commit ae1e2ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/include/llvm/Support/SpecialCaseList.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,14 @@ class SpecialCaseList {
197197
protected:
198198
class Section {
199199
public:
200-
Section(StringRef Str, unsigned FileIdx, bool UseGlobs)
201-
: SectionMatcher(UseGlobs, /*RemoveDotSlash=*/false), SectionStr(Str),
200+
Section(StringRef Name, unsigned FileIdx, bool UseGlobs)
201+
: SectionMatcher(UseGlobs, /*RemoveDotSlash=*/false), Name(Name),
202202
FileIdx(FileIdx) {}
203203

204204
Section(Section &&) = default;
205205

206206
// Returns name of the section, its entire string in [].
207-
StringRef name() const { return SectionStr; }
207+
StringRef name() const { return Name; }
208208

209209
// Returns true if string 'Name' matches section name interpreted as a glob.
210210
LLVM_ABI bool matchName(StringRef Name) const;
@@ -232,7 +232,7 @@ class SpecialCaseList {
232232
findMatcher(StringRef Prefix, StringRef Category) const;
233233

234234
Matcher SectionMatcher;
235-
StringRef SectionStr;
235+
StringRef Name;
236236
SectionEntries Entries;
237237
unsigned FileIdx;
238238
};

0 commit comments

Comments
 (0)