[ELF][AARCH64] Refactor AArchErrataFix to match changes in ARMErrataFix NFC.
authorPeter Smith <peter.smith@linaro.org>
Tue, 17 Sep 2019 09:49:30 +0000 (09:49 +0000)
committerPeter Smith <peter.smith@linaro.org>
Tue, 17 Sep 2019 09:49:30 +0000 (09:49 +0000)
commit43d32cdd8717c3a6c35bd47d1e32789c854e6955
treebeb44d7deb025cb976e4beb35bacfe76cacbe0e4
parent3d33e97be638bb8e91481decb1da07d8123ec17f
[ELF][AARCH64] Refactor AArchErrataFix to match changes in ARMErrataFix NFC.

D67284 introduced ARMErrataFix.cpp which was derived from
AArch64ErrataFix.cpp. There were some useful refactoring changes made to
ARMErrataFix.cpp made as part of the review. This change applies the
relevant changes back to AArch64ErrataFix.cpp.

Main changes are:
- Old style variable names in comments like IS, are now new style isec.
- Simplify init() collection of mappingSymbols to always start with a code
mapping symbol.
- Simplify logic in mergeCmp().
- Fix one 80 column overflow caused by IS -> isec transformation.

Differential Revision: https://reviews.llvm.org/D67622

llvm-svn: 372094
lld/ELF/AArch64ErrataFix.cpp