Path: blob/main/contrib/llvm-project/lld/ELF/AArch64ErrataFix.h
34878 views
//===- AArch64ErrataFix.h ---------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLD_ELF_AARCH64ERRATAFIX_H9#define LLD_ELF_AARCH64ERRATAFIX_H1011#include "lld/Common/LLVM.h"12#include "llvm/ADT/DenseMap.h"13#include <vector>1415namespace lld::elf {1617class Defined;18class InputSection;19class InputSectionDescription;20class Patch843419Section;2122class AArch64Err843419Patcher {23public:24// return true if Patches have been added to the OutputSections.25bool createFixes();2627private:28std::vector<Patch843419Section *>29patchInputSectionDescription(InputSectionDescription &isd);3031void insertPatches(InputSectionDescription &isd,32std::vector<Patch843419Section *> &patches);3334void init();3536// A cache of the mapping symbols defined by the InputSection sorted in order37// of ascending value with redundant symbols removed. These describe38// the ranges of code and data in an executable InputSection.39llvm::DenseMap<InputSection *, std::vector<const Defined *>> sectionMap;4041bool initialized = false;42};4344} // namespace lld::elf4546#endif474849