#include "OutputSegment.h"
#include "ConcatOutputSection.h"
#include "InputSection.h"
#include "Sections.h"
#include "Symbols.h"
#include "SyntheticSections.h"
#include "lld/Common/ErrorHandler.h"
#include "lld/Common/Memory.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/BinaryFormat/MachO.h"
usingnamespacellvm;
usingnamespacellvm::MachO;
usingnamespacelld;
usingnamespacelld::macho;
static uint32_t initProt(StringRef name) { … }
static uint32_t maxProt(StringRef name) { … }
static uint32_t flags(StringRef name) { … }
size_t OutputSegment::numNonHiddenSections() const { … }
void OutputSegment::addOutputSection(OutputSection *osec) { … }
template <typename T, typename F> static auto compareByOrder(F ord) { … }
static int segmentOrder(OutputSegment *seg) { … }
static int sectionOrder(OutputSection *osec) { … }
void OutputSegment::sortOutputSections() { … }
void OutputSegment::assignAddressesToStartEndSymbols() { … }
void macho::sortOutputSegments() { … }
static DenseMap<StringRef, OutputSegment *> nameToOutputSegment;
std::vector<OutputSegment *> macho::outputSegments;
void macho::resetOutputSegments() { … }
static StringRef maybeRenameSegment(StringRef name) { … }
OutputSegment *macho::getOrCreateOutputSegment(StringRef name) { … }