Path: blob/main/contrib/llvm-project/lld/ELF/ARMErrataFix.h
34914 views
//===- ARMErrataFix.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_ARMA8ERRATAFIX_H9#define LLD_ELF_ARMA8ERRATAFIX_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 Patch657417Section;2122class ARMErr657417Patcher {23public:24// Return true if Patches have been added to the OutputSections.25bool createFixes();2627private:28std::vector<Patch657417Section *>29patchInputSectionDescription(InputSectionDescription &isd);3031void insertPatches(InputSectionDescription &isd,32std::vector<Patch657417Section *> &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