COFF: Simplify SymbolBody::compare(SymbolBody *Other).
authorRui Ueyama <ruiu@google.com>
Mon, 15 Jun 2015 19:06:53 +0000 (19:06 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 15 Jun 2015 19:06:53 +0000 (19:06 +0000)
commite25147626c8035b56c5c6e86af9e14b6f1a12169
tree1e04616b61a39c1cee619d26e19b627e1185ed14
parent56efafc0566def51ec7e632e09574ed553296b48
COFF: Simplify SymbolBody::compare(SymbolBody *Other).

We are currently handling all combinations of SymbolBody types directly.
This patch is to flip this and Other if Other->kind() < this->kind()
to reduce number of combinations. No functionality change intended.

llvm-svn: 239745
lld/COFF/Symbols.cpp
lld/COFF/Symbols.h