Lines Matching refs:SectionName

154   bool ParseSectionName(StringRef &SectionName);
244 bool ELFAsmParser::ParseSectionName(StringRef &SectionName) { in ParseSectionName() argument
251 SectionName = getTok().getIdentifier(); in ParseSectionName()
274 SectionName = StringRef(FirstLoc.getPointer(), Size); in ParseSectionName()
517 static bool hasPrefix(StringRef SectionName, StringRef Prefix) { in hasPrefix() argument
518 return SectionName.consume_front(Prefix) && in hasPrefix()
519 (SectionName.empty() || SectionName[0] == '.'); in hasPrefix()
522 static bool allowSectionTypeMismatch(const Triple &TT, StringRef SectionName, in allowSectionTypeMismatch() argument
528 return SectionName == ".eh_frame" && Type == ELF::SHT_PROGBITS; in allowSectionTypeMismatch()
534 return SectionName.starts_with(".debug_") && Type == ELF::SHT_PROGBITS; in allowSectionTypeMismatch()
540 StringRef SectionName; in ParseSectionArguments() local
542 if (ParseSectionName(SectionName)) in ParseSectionArguments()
557 if (hasPrefix(SectionName, ".rodata") || SectionName == ".rodata1") in ParseSectionArguments()
559 else if (SectionName == ".fini" || SectionName == ".init" || in ParseSectionArguments()
560 hasPrefix(SectionName, ".text")) in ParseSectionArguments()
562 else if (hasPrefix(SectionName, ".data") || SectionName == ".data1" || in ParseSectionArguments()
563 hasPrefix(SectionName, ".bss") || in ParseSectionArguments()
564 hasPrefix(SectionName, ".init_array") || in ParseSectionArguments()
565 hasPrefix(SectionName, ".fini_array") || in ParseSectionArguments()
566 hasPrefix(SectionName, ".preinit_array")) in ParseSectionArguments()
568 else if (hasPrefix(SectionName, ".tdata") || hasPrefix(SectionName, ".tbss")) in ParseSectionArguments()
637 if (SectionName.starts_with(".note")) in ParseSectionArguments()
639 else if (hasPrefix(SectionName, ".init_array")) in ParseSectionArguments()
641 else if (hasPrefix(SectionName, ".bss")) in ParseSectionArguments()
643 else if (hasPrefix(SectionName, ".tbss")) in ParseSectionArguments()
645 else if (hasPrefix(SectionName, ".fini_array")) in ParseSectionArguments()
647 else if (hasPrefix(SectionName, ".preinit_array")) in ParseSectionArguments()
695 getContext().getELFSection(SectionName, Type, Flags, Size, GroupName, in ParseSectionArguments()
702 !allowSectionTypeMismatch(getContext().getTargetTriple(), SectionName, in ParseSectionArguments()
704 Error(loc, "changed section type for " + SectionName + ", expected: 0x" + in ParseSectionArguments()
707 Error(loc, "changed section flags for " + SectionName + ", expected: 0x" + in ParseSectionArguments()
711 Error(loc, "changed section entsize for " + SectionName + in ParseSectionArguments()