mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
Fix comparison functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233467 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d397a52305
commit
0b8cd1dee9
@ -168,8 +168,8 @@ namespace llvm {
|
||||
ELFSectionKey(StringRef SectionName, StringRef GroupName)
|
||||
: SectionName(SectionName), GroupName(GroupName) {}
|
||||
bool operator<(const ELFSectionKey &Other) const {
|
||||
if (SectionName < Other.SectionName)
|
||||
return true;
|
||||
if (SectionName != Other.SectionName)
|
||||
return SectionName < Other.SectionName;
|
||||
return GroupName < Other.GroupName;
|
||||
}
|
||||
};
|
||||
@ -183,9 +183,9 @@ namespace llvm {
|
||||
: SectionName(SectionName), GroupName(GroupName),
|
||||
SelectionKey(SelectionKey) {}
|
||||
bool operator<(const COFFSectionKey &Other) const {
|
||||
if (SectionName < Other.SectionName)
|
||||
return true;
|
||||
if (GroupName < Other.GroupName)
|
||||
if (SectionName != Other.SectionName)
|
||||
return SectionName < Other.SectionName;
|
||||
if (GroupName != Other.GroupName)
|
||||
return GroupName < Other.GroupName;
|
||||
return SelectionKey < Other.SelectionKey;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user