[AppleAccelTable][NFC] Improve code readability
authorFelipe de Azevedo Piovezan <fpiovezan@apple.com>
Mon, 5 Jun 2023 11:26:20 +0000 (07:26 -0400)
committerFelipe de Azevedo Piovezan <fpiovezan@apple.com>
Thu, 8 Jun 2023 20:36:08 +0000 (16:36 -0400)
commit47755e1ff8f255d4f369269be078063dc53944ea
tree8e6526177659ef778011e6c8ddf106a1b71883f7
parentb1ebfc5de34ef4c91aa6f163989de600fb5227f8
[AppleAccelTable][NFC] Improve code readability

This commit does a few minor NFC cleanups:

* A variable was called "Atom", probably trying to claim it was an AtomType.
This was incorrect, it is actually a FormValue.

* LLVM provides a `zip_equal` to express the intent of asserting ranges with the
same size. We change the lookup method to use that.

* The use of tuples made the code slightly difficult to follow, as such we
unpack the tuple with structure binding to improve readability.

Depends on D152157

Differential Revision: https://reviews.llvm.org/D152158
llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp