1 //===- AArch64ErrataFix.h ---------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef LLD_ELF_AARCH64ERRATAFIX_H
10 #define LLD_ELF_AARCH64ERRATAFIX_H
12 #include "lld/Common/LLVM.h"
21 struct InputSectionDescription;
23 class Patch843419Section;
25 class AArch64Err843419Patcher {
27 // return true if Patches have been added to the OutputSections.
31 std::vector<Patch843419Section *>
32 patchInputSectionDescription(InputSectionDescription &isd);
34 void insertPatches(InputSectionDescription &isd,
35 std::vector<Patch843419Section *> &patches);
39 // A cache of the mapping symbols defined by the InputSection sorted in order
40 // of ascending value with redundant symbols removed. These describe
41 // the ranges of code and data in an executable InputSection.
42 std::map<InputSection *, std::vector<const Defined *>> sectionMap;
44 bool initialized = false;