Home
last modified time | relevance | path

Searched refs:OutputDesc (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/llvm-project/lld/ELF/
H A DLinkerScript.cpp138 OutputDesc *LinkerScript::createOutputSection(StringRef name, in createOutputSection()
140 OutputDesc *&secRef = nameToOutputSection[CachedHashStringRef(name)]; in createOutputSection()
141 OutputDesc *sec; in createOutputSection()
147 std::make_unique<OutputDesc>(ctx, name, SHT_PROGBITS, 0)); in createOutputSection()
156 OutputDesc *LinkerScript::getOrCreateOutputSection(StringRef name) { in getOrCreateOutputSection()
161 std::make_unique<OutputDesc>(ctx, name, SHT_PROGBITS, 0)) in getOrCreateOutputSection()
303 for (SectionCommand *subCmd : cast<OutputDesc>(cmd)->osec.commands) in getSymbolAssignmentValues()
329 SmallVector<OutputDesc *, 0> moves; in processInsertCommands()
339 return isa<OutputDesc>(subCmd) && in processInsertCommands()
340 cast<OutputDesc>(subCmd)->osec.name == name; in processInsertCommands()
[all …]
H A DLinkerScript.h37 struct OutputDesc;
318 SmallVector<std::unique_ptr<OutputDesc>, 0> descPool;
319 llvm::DenseMap<llvm::CachedHashStringRef, OutputDesc *> nameToOutputSection;
361 OutputDesc *createOutputSection(StringRef name, StringRef location);
362 OutputDesc *getOrCreateOutputSection(StringRef name);
441 SmallVector<OutputDesc *, 0> overwriteSections;
H A DOutputSections.h138 struct OutputDesc final : SectionCommand {
140 OutputDesc(Ctx &ctx, StringRef name, uint32_t type, uint64_t flags) in OutputDesc() function
H A DScriptParser.cpp84 OutputDesc *readOverlaySectionDescription();
85 OutputDesc *readOutputSectionDescription(StringRef outSec);
575 OutputDesc *osd = readOverlaySectionDescription(); in readOverlay()
590 static_cast<OutputDesc *>(v.front())->osec.firstInOverlay = true; in readOverlay()
594 static_cast<OutputDesc *>(od)->osec.memoryRegionName = in readOverlay()
600 cmd.outputSections.push_back(static_cast<OutputDesc *>(od)->osec.name); in readOverlay()
611 max = std::max(max, cast<OutputDesc>(cmd)->osec.size); in readOverlay()
680 if (auto *osd = dyn_cast<OutputDesc>(cmd)) in readSections()
699 if (auto *os = dyn_cast<OutputDesc>(cmd)) in readSections()
994 OutputDesc *ScriptParser::readOverlaySectionDescription() { in readOverlaySectionDescription()
[all …]
H A DWriter.cpp311 if (auto *osd = dyn_cast<OutputDesc>(cmd)) in findSection()
518 auto *osd = dyn_cast<OutputDesc>(cmd); in addSectionSymbols()
795 const OutputSection *a = &cast<OutputDesc>(aCmd)->osec; in compareSections()
796 const OutputSection *b = &cast<OutputDesc>(bCmd)->osec; in compareSections()
937 auto *osd = dyn_cast<OutputDesc>(b); in getRankProximity()
971 OutputSection *sec = &cast<OutputDesc>(*e)->osec; in findOrphanPos()
998 (p == maxP && cast<OutputDesc>(*j)->osec.sortRank <= sec->sortRank)) { in findOrphanPos()
1007 auto *osd = dyn_cast<OutputDesc>(cmd); in findOrphanPos()
1021 if (cast<OutputDesc>(*i)->osec.sortRank <= sec->sortRank || mustAfter) { in findOrphanPos()
1281 if (auto *osd = dyn_cast<OutputDesc>(cmd)) in sortInputSections()
[all …]
H A DMapFile.cpp174 osec = &cast<OutputDesc>(cmd)->osec; in writeMapFile()
H A DICF.cpp575 if (auto *osd = dyn_cast<OutputDesc>(cmd)) in run()
H A DSyntheticSections.cpp2408 if (isa<OutputDesc>(cmd)) in isNeeded()
4703 if (auto *osd = dyn_cast<OutputDesc>(cmd)) in findSection()
H A DDriver.cpp3478 if (auto *osd = dyn_cast<OutputDesc>(cmd)) in link()