HomePhabricator

[ELF][AARCH64] Refactor AArchErrataFix to match changes in ARMErrataFix NFC.

Description

[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

Details

Committed
psmithSep 17 2019, 2:49 AM
Differential Revision
D67622: [LLD][AARCH64] Small refactor of AArchErrataFix to match changes in ARMErrataFix NFC.
Parents
rL372093: [NFC} Updated test
Branches
Unknown
Tags
Unknown