annotate lld/ELF/ARMErrataFix.h @ 259:011663b4a808

remove duplicate setjmp in return continuation
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 12 Oct 2023 15:52:37 +0900
parents c4bab56944e8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 //===- ARMErrataFix.h -------------------------------------------*- C++ -*-===//
anatofuz
parents:
diff changeset
2 //
anatofuz
parents:
diff changeset
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
anatofuz
parents:
diff changeset
4 // See https://llvm.org/LICENSE.txt for license information.
anatofuz
parents:
diff changeset
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
anatofuz
parents:
diff changeset
6 //
anatofuz
parents:
diff changeset
7 //===----------------------------------------------------------------------===//
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 #ifndef LLD_ELF_ARMA8ERRATAFIX_H
anatofuz
parents:
diff changeset
10 #define LLD_ELF_ARMA8ERRATAFIX_H
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 #include "lld/Common/LLVM.h"
anatofuz
parents:
diff changeset
13 #include "llvm/ADT/DenseMap.h"
anatofuz
parents:
diff changeset
14 #include <vector>
anatofuz
parents:
diff changeset
15
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
16 namespace lld::elf {
150
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 class Defined;
anatofuz
parents:
diff changeset
19 class InputSection;
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
20 class InputSectionDescription;
150
anatofuz
parents:
diff changeset
21 class Patch657417Section;
anatofuz
parents:
diff changeset
22
anatofuz
parents:
diff changeset
23 class ARMErr657417Patcher {
anatofuz
parents:
diff changeset
24 public:
anatofuz
parents:
diff changeset
25 // Return true if Patches have been added to the OutputSections.
anatofuz
parents:
diff changeset
26 bool createFixes();
anatofuz
parents:
diff changeset
27
anatofuz
parents:
diff changeset
28 private:
anatofuz
parents:
diff changeset
29 std::vector<Patch657417Section *>
anatofuz
parents:
diff changeset
30 patchInputSectionDescription(InputSectionDescription &isd);
anatofuz
parents:
diff changeset
31
anatofuz
parents:
diff changeset
32 void insertPatches(InputSectionDescription &isd,
anatofuz
parents:
diff changeset
33 std::vector<Patch657417Section *> &patches);
anatofuz
parents:
diff changeset
34
anatofuz
parents:
diff changeset
35 void init();
anatofuz
parents:
diff changeset
36
anatofuz
parents:
diff changeset
37 // A cache of the mapping symbols defined by the InputSection sorted in order
anatofuz
parents:
diff changeset
38 // of ascending value with redundant symbols removed. These describe
anatofuz
parents:
diff changeset
39 // the ranges of code and data in an executable InputSection.
anatofuz
parents:
diff changeset
40 llvm::DenseMap<InputSection *, std::vector<const Defined *>> sectionMap;
anatofuz
parents:
diff changeset
41
anatofuz
parents:
diff changeset
42 bool initialized = false;
anatofuz
parents:
diff changeset
43 };
anatofuz
parents:
diff changeset
44
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
45 } // namespace lld::elf
150
anatofuz
parents:
diff changeset
46
anatofuz
parents:
diff changeset
47 #endif