Lines Matching refs:SectionName

155   bool ParseSectionName(StringRef &SectionName);
245 bool ELFAsmParser::ParseSectionName(StringRef &SectionName) { in ParseSectionName() argument
252 SectionName = getTok().getIdentifier(); in ParseSectionName()
275 SectionName = StringRef(FirstLoc.getPointer(), Size); in ParseSectionName()
501 static bool hasPrefix(StringRef SectionName, StringRef Prefix) { in hasPrefix() argument
502 return SectionName.startswith(Prefix) || SectionName == Prefix.drop_back(); in hasPrefix()
506 StringRef SectionName; in ParseSectionArguments() local
508 if (ParseSectionName(SectionName)) in ParseSectionArguments()
523 if (hasPrefix(SectionName, ".rodata.") || SectionName == ".rodata1") in ParseSectionArguments()
525 else if (SectionName == ".fini" || SectionName == ".init" || in ParseSectionArguments()
526 hasPrefix(SectionName, ".text.")) in ParseSectionArguments()
528 else if (hasPrefix(SectionName, ".data.") || SectionName == ".data1" || in ParseSectionArguments()
529 hasPrefix(SectionName, ".bss.") || in ParseSectionArguments()
530 hasPrefix(SectionName, ".init_array.") || in ParseSectionArguments()
531 hasPrefix(SectionName, ".fini_array.") || in ParseSectionArguments()
532 hasPrefix(SectionName, ".preinit_array.")) in ParseSectionArguments()
534 else if (hasPrefix(SectionName, ".tdata.") || in ParseSectionArguments()
535 hasPrefix(SectionName, ".tbss.")) in ParseSectionArguments()
604 if (SectionName.startswith(".note")) in ParseSectionArguments()
606 else if (hasPrefix(SectionName, ".init_array.")) in ParseSectionArguments()
608 else if (hasPrefix(SectionName, ".bss.")) in ParseSectionArguments()
610 else if (hasPrefix(SectionName, ".tbss.")) in ParseSectionArguments()
612 else if (hasPrefix(SectionName, ".fini_array.")) in ParseSectionArguments()
614 else if (hasPrefix(SectionName, ".preinit_array.")) in ParseSectionArguments()
659 getContext().getELFSection(SectionName, Type, Flags, Size, GroupName, in ParseSectionArguments()
666 !(SectionName == ".eh_frame" && Type == ELF::SHT_PROGBITS)) in ParseSectionArguments()
667 Error(loc, "changed section type for " + SectionName + ", expected: 0x" + in ParseSectionArguments()
673 Error(loc, "changed section flags for " + SectionName + ", expected: 0x" + in ParseSectionArguments()
677 Error(loc, "changed section entsize for " + SectionName + in ParseSectionArguments()