Lines Matching defs:COFFSection
67 class COFFSection;
79 COFFSection *Section = nullptr;
107 class COFFSection {
117 COFFSection(StringRef Name) : Name(std::string(Name)) {}
128 using sections = std::vector<std::unique_ptr<COFFSection>>;
131 using section_map = DenseMap<MCSection const *, COFFSection *>;
171 COFFSection *createSection(StringRef Name);
179 void SetSectionName(COFFSection &S);
181 bool IsPhysicalSection(COFFSection *S);
190 void writeSection(MCAssembler &Asm, const COFFSection &Sec);
253 COFFSection *WinCOFFWriter::createSection(StringRef Name) {
254 Sections.emplace_back(std::make_unique<COFFSection>(Name));
296 COFFSection *Section = createSection(MCSec.getName());
374 COFFSection *Sec = nullptr;
439 void WinCOFFWriter::SetSectionName(COFFSection &S) {
457 bool WinCOFFWriter::IsPhysicalSection(COFFSection *S) {
541 std::vector<COFFSection *> Arr;
544 llvm::sort(Arr, [](const COFFSection *A, const COFFSection *B) {
595 void WinCOFFWriter::writeSection(MCAssembler &Asm, const COFFSection &Sec) {
710 static bool isAssociative(const COFFSection &Section) {
717 auto Assign = [&](COFFSection &Section) {
727 for (const std::unique_ptr<COFFSection> &Section : Sections)
730 for (const std::unique_ptr<COFFSection> &Section : Sections)
743 COFFSection *Sec = SectionMap[&Section];
862 COFFSection *Sec = SectionMap[MCSec];
898 COFFSection *Section = SectionMap[TargetSection];
1068 COFFSection *AssocSec = SectionMap[AssocMCSec];
1143 for (std::unique_ptr<COFFSection> &Sec : Sections)