[cmake] Fix ms-compat version in WinMsvc.cmake
[llvm-project.git] / lld / ELF / AArch64ErrataFix.h
blob1ca4ea752031ff872577959ec1b62295bcb74f1d
1 //===- AArch64ErrataFix.h ---------------------------------------*- C++ -*-===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLD_ELF_AARCH64ERRATAFIX_H
10 #define LLD_ELF_AARCH64ERRATAFIX_H
12 #include "lld/Common/LLVM.h"
13 #include "llvm/ADT/DenseMap.h"
14 #include <vector>
16 namespace lld {
17 namespace elf {
19 class Defined;
20 class InputSection;
21 class InputSectionDescription;
22 class Patch843419Section;
24 class AArch64Err843419Patcher {
25 public:
26 // return true if Patches have been added to the OutputSections.
27 bool createFixes();
29 private:
30 std::vector<Patch843419Section *>
31 patchInputSectionDescription(InputSectionDescription &isd);
33 void insertPatches(InputSectionDescription &isd,
34 std::vector<Patch843419Section *> &patches);
36 void init();
38 // A cache of the mapping symbols defined by the InputSection sorted in order
39 // of ascending value with redundant symbols removed. These describe
40 // the ranges of code and data in an executable InputSection.
41 llvm::DenseMap<InputSection *, std::vector<const Defined *>> sectionMap;
43 bool initialized = false;
46 } // namespace elf
47 } // namespace lld
49 #endif