[llvm-commits] [llvm] r127527 - /llvm/trunk/lib/MC/MCDisassembler/EDDisassembler.h
Sean Callanan
scallanan at apple.com
Fri Mar 11 19:27:54 PST 2011
Author: spyffe
Date: Fri Mar 11 21:27:54 2011
New Revision: 127527
URL: http://llvm.org/viewvc/llvm-project?rev=127527&view=rev
Log:
Fixed the comparison operator for the enhanced
disassembler's disassembler map.
Modified:
llvm/trunk/lib/MC/MCDisassembler/EDDisassembler.h
Modified: llvm/trunk/lib/MC/MCDisassembler/EDDisassembler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCDisassembler/EDDisassembler.h?rev=127527&r1=127526&r2=127527&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCDisassembler/EDDisassembler.h (original)
+++ llvm/trunk/lib/MC/MCDisassembler/EDDisassembler.h Fri Mar 11 21:27:54 2011
@@ -87,13 +87,8 @@
/// 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)));
}
};
More information about the llvm-commits
mailing list