dwarf2.c: simplify best_fit_len tests
authorAlan Modra <amodra@gmail.com>
Wed, 21 Sep 2022 05:17:31 +0000 (14:47 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 21 Sep 2022 06:25:10 +0000 (15:55 +0930)
commit6c5e237146d0b631c311d33f7cd7f0ce03677b96
tree4020192a08822f0f3bf491c5ff1b0485143d8838
parent4609af80c29db6015ce01b67c48f237c210da9b4
dwarf2.c: simplify best_fit_len tests

* dwarf2.c (lookup_address_in_function_table): Simplify
best_fit_len test.
(info_hash_lookup_funcinfo): Likewise.
(lookup_symbol_in_function_table): Likewise, also reorder tests
and check "file" is set.
(lookup_symbol_in_variable_table): Reorder tests.
bfd/dwarf2.c