Lines Matching refs:SectionName
153 bool ParseSectionName(StringRef &SectionName);
243 bool ELFAsmParser::ParseSectionName(StringRef &SectionName) { in ParseSectionName() argument
250 SectionName = getTok().getIdentifier(); in ParseSectionName()
273 SectionName = StringRef(FirstLoc.getPointer(), Size); in ParseSectionName()
503 static bool hasPrefix(StringRef SectionName, StringRef Prefix) { in hasPrefix() argument
504 return SectionName.consume_front(Prefix) && in hasPrefix()
505 (SectionName.empty() || SectionName[0] == '.'); in hasPrefix()
508 static bool allowSectionTypeMismatch(const Triple &TT, StringRef SectionName, in allowSectionTypeMismatch() argument
514 return SectionName == ".eh_frame" && Type == ELF::SHT_PROGBITS; in allowSectionTypeMismatch()
520 return SectionName.startswith(".debug_") && Type == ELF::SHT_PROGBITS; in allowSectionTypeMismatch()
526 StringRef SectionName; in ParseSectionArguments() local
528 if (ParseSectionName(SectionName)) in ParseSectionArguments()
543 if (hasPrefix(SectionName, ".rodata") || SectionName == ".rodata1") in ParseSectionArguments()
545 else if (SectionName == ".fini" || SectionName == ".init" || in ParseSectionArguments()
546 hasPrefix(SectionName, ".text")) in ParseSectionArguments()
548 else if (hasPrefix(SectionName, ".data") || SectionName == ".data1" || in ParseSectionArguments()
549 hasPrefix(SectionName, ".bss") || in ParseSectionArguments()
550 hasPrefix(SectionName, ".init_array") || in ParseSectionArguments()
551 hasPrefix(SectionName, ".fini_array") || in ParseSectionArguments()
552 hasPrefix(SectionName, ".preinit_array")) in ParseSectionArguments()
554 else if (hasPrefix(SectionName, ".tdata") || hasPrefix(SectionName, ".tbss")) in ParseSectionArguments()
623 if (SectionName.startswith(".note")) in ParseSectionArguments()
625 else if (hasPrefix(SectionName, ".init_array")) in ParseSectionArguments()
627 else if (hasPrefix(SectionName, ".bss")) in ParseSectionArguments()
629 else if (hasPrefix(SectionName, ".tbss")) in ParseSectionArguments()
631 else if (hasPrefix(SectionName, ".fini_array")) in ParseSectionArguments()
633 else if (hasPrefix(SectionName, ".preinit_array")) in ParseSectionArguments()
680 getContext().getELFSection(SectionName, Type, Flags, Size, GroupName, in ParseSectionArguments()
687 !allowSectionTypeMismatch(getContext().getTargetTriple(), SectionName, in ParseSectionArguments()
689 Error(loc, "changed section type for " + SectionName + ", expected: 0x" + in ParseSectionArguments()
692 Error(loc, "changed section flags for " + SectionName + ", expected: 0x" + in ParseSectionArguments()
696 Error(loc, "changed section entsize for " + SectionName + in ParseSectionArguments()