Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions llvm/include/llvm/Support/SpecialCaseList.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,14 @@ class SpecialCaseList {
protected:
class Section {
public:
Section(StringRef Str, unsigned FileIdx, bool UseGlobs)
: SectionMatcher(UseGlobs, /*RemoveDotSlash=*/false), SectionStr(Str),
Section(StringRef Name, unsigned FileIdx, bool UseGlobs)
: SectionMatcher(UseGlobs, /*RemoveDotSlash=*/false), Name(Name),
FileIdx(FileIdx) {}

Section(Section &&) = default;

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

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

Matcher SectionMatcher;
StringRef SectionStr;
StringRef Name;
SectionEntries Entries;
unsigned FileIdx;
};
Expand Down
Loading