mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Fixed the comparison operator for the enhanced
disassembler's disassembler map. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127527 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
55768d763d
commit
7a387e4d9d
@ -87,13 +87,8 @@ struct EDDisassembler {
|
||||
|
||||
/// operator< - Less-than operator
|
||||
bool operator<(const CPUKey &key) const {
|
||||
if(Arch > key.Arch)
|
||||
return false;
|
||||
else if (Arch == key.Arch) {
|
||||
if(Syntax > key.Syntax)
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return ((Arch < key.Arch) ||
|
||||
((Arch == key.Arch) && Syntax < (key.Syntax)));
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user