• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/lld/lib/ReaderWriter/MachO/

Lines Matching refs:LayoutPass

1 //===-- ReaderWriter/MachO/LayoutPass.cpp - Layout atoms ------------------===//
9 #include "LayoutPass.h"
23 #define DEBUG_TYPE "LayoutPass"
28 static bool compareAtoms(const LayoutPass::SortKey &,
29 const LayoutPass::SortKey &,
30 LayoutPass::SortOverride customSorter);
42 static void checkTransitivity(std::vector<LayoutPass::SortKey> &vec,
43 LayoutPass::SortOverride customSorter) {
149 void LayoutPass::checkFollowonChain(const File::AtomRange<DefinedAtom> &range) {
150 ScopedTask task(getDefaultDomain(), "LayoutPass::checkFollowonChain");
175 static bool compareAtomsSub(const LayoutPass::SortKey &lc,
176 const LayoutPass::SortKey &rc,
177 LayoutPass::SortOverride customSorter,
249 static bool compareAtoms(const LayoutPass::SortKey &lc,
250 const LayoutPass::SortKey &rc,
251 LayoutPass::SortOverride customSorter) {
263 LayoutPass::LayoutPass(const Registry &registry, SortOverride sorter)
268 const DefinedAtom *LayoutPass::findAtomFollowedBy(
289 bool LayoutPass::checkAllPrevAtomsZeroSize(const DefinedAtom *targetAtom) {
306 void LayoutPass::setChainRoot(const DefinedAtom *targetAtom,
334 void LayoutPass::buildFollowOnTable(const File::AtomRange<DefinedAtom> &range) {
335 ScopedTask task(getDefaultDomain(), "LayoutPass::buildFollowOnTable");
403 LayoutPass::buildOrdinalOverrideMap(const File::AtomRange<DefinedAtom> &range) {
404 ScopedTask task(getDefaultDomain(), "LayoutPass::buildOrdinalOverrideMap");
422 std::vector<LayoutPass::SortKey>
423 LayoutPass::decorate(File::AtomRange<DefinedAtom> &atomRange) const {
435 void LayoutPass::undecorate(File::AtomRange<DefinedAtom> &atomRange,
443 llvm::Error LayoutPass::perform(SimpleFile &mergedFile) {
446 ScopedTask task(getDefaultDomain(), "LayoutPass");
463 std::vector<LayoutPass::SortKey> vec = decorate(atomRange);
466 [&](const LayoutPass::SortKey &l, const LayoutPass::SortKey &r) -> bool {
482 pm.add(std::make_unique<LayoutPass>(