mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-01 08:47:42 +00:00
Fixed the comparison operator for the enhanced
disassembler's disassembler map. llvm-svn: 127527
This commit is contained in:
parent
925b25d53d
commit
4f6e58ff09
@ -87,13 +87,8 @@ struct EDDisassembler {
|
|||||||
|
|
||||||
/// operator< - Less-than operator
|
/// operator< - Less-than operator
|
||||||
bool operator<(const CPUKey &key) const {
|
bool operator<(const CPUKey &key) const {
|
||||||
if(Arch > key.Arch)
|
return ((Arch < key.Arch) ||
|
||||||
return false;
|
((Arch == key.Arch) && Syntax < (key.Syntax)));
|
||||||
else if (Arch == key.Arch) {
|
|
||||||
if(Syntax > key.Syntax)
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user