Lines Matching refs:SectionName
156 bool ParseSectionName(StringRef &SectionName);
240 bool ELFAsmParser::ParseSectionName(StringRef &SectionName) { in ParseSectionName() argument
247 SectionName = getTok().getIdentifier(); in ParseSectionName()
270 SectionName = StringRef(FirstLoc.getPointer(), Size); in ParseSectionName()
483 static bool hasPrefix(StringRef SectionName, StringRef Prefix) { in hasPrefix() argument
484 return SectionName.startswith(Prefix) || SectionName == Prefix.drop_back(); in hasPrefix()
488 StringRef SectionName; in ParseSectionArguments() local
490 if (ParseSectionName(SectionName)) in ParseSectionArguments()
503 if (hasPrefix(SectionName, ".rodata.") || SectionName == ".rodata1") in ParseSectionArguments()
505 else if (SectionName == ".fini" || SectionName == ".init" || in ParseSectionArguments()
506 hasPrefix(SectionName, ".text.")) in ParseSectionArguments()
508 else if (hasPrefix(SectionName, ".data.") || SectionName == ".data1" || in ParseSectionArguments()
509 hasPrefix(SectionName, ".bss.") || in ParseSectionArguments()
510 hasPrefix(SectionName, ".init_array.") || in ParseSectionArguments()
511 hasPrefix(SectionName, ".fini_array.") || in ParseSectionArguments()
512 hasPrefix(SectionName, ".preinit_array.")) in ParseSectionArguments()
514 else if (hasPrefix(SectionName, ".tdata.") || in ParseSectionArguments()
515 hasPrefix(SectionName, ".tbss.")) in ParseSectionArguments()
586 if (SectionName.startswith(".note")) in ParseSectionArguments()
588 else if (hasPrefix(SectionName, ".init_array.")) in ParseSectionArguments()
590 else if (hasPrefix(SectionName, ".bss.")) in ParseSectionArguments()
592 else if (hasPrefix(SectionName, ".tbss.")) in ParseSectionArguments()
594 else if (hasPrefix(SectionName, ".fini_array.")) in ParseSectionArguments()
596 else if (hasPrefix(SectionName, ".preinit_array.")) in ParseSectionArguments()
634 getContext().getELFSection(SectionName, Type, Flags, Size, GroupName, in ParseSectionArguments()