Lines Matching defs:StringRef
10 #include "llvm/ADT/StringRef.h"
36 template<bool (ELFAsmParser::*HandlerMethod)(StringRef, SMLoc)>
37 void addDirectiveHandler(StringRef Directive) {
44 bool ParseSectionSwitch(StringRef Section, unsigned Type, unsigned Flags,
91 bool ParseSectionDirectiveData(StringRef, SMLoc) {
96 bool ParseSectionDirectiveText(StringRef, SMLoc) {
101 bool ParseSectionDirectiveBSS(StringRef, SMLoc) {
106 bool ParseSectionDirectiveRoData(StringRef, SMLoc) {
111 bool ParseSectionDirectiveTData(StringRef, SMLoc) {
117 bool ParseSectionDirectiveTBSS(StringRef, SMLoc) {
123 bool ParseSectionDirectiveDataRel(StringRef, SMLoc) {
128 bool ParseSectionDirectiveDataRelRo(StringRef, SMLoc) {
134 bool ParseSectionDirectiveEhFrame(StringRef, SMLoc) {
139 bool ParseDirectivePushSection(StringRef, SMLoc);
140 bool ParseDirectivePopSection(StringRef, SMLoc);
141 bool ParseDirectiveSection(StringRef, SMLoc);
142 bool ParseDirectiveSize(StringRef, SMLoc);
143 bool ParseDirectivePrevious(StringRef, SMLoc);
144 bool ParseDirectiveType(StringRef, SMLoc);
145 bool ParseDirectiveIdent(StringRef, SMLoc);
146 bool ParseDirectiveSymver(StringRef, SMLoc);
147 bool ParseDirectiveVersion(StringRef, SMLoc);
148 bool ParseDirectiveWeakref(StringRef, SMLoc);
149 bool ParseDirectiveSymbolAttribute(StringRef, SMLoc);
150 bool ParseDirectiveSubsection(StringRef, SMLoc);
151 bool ParseDirectiveCGProfile(StringRef, SMLoc);
154 bool ParseSectionName(StringRef &SectionName);
157 bool maybeParseSectionType(StringRef &TypeName);
159 bool parseGroup(StringRef &GroupName, bool &IsComdat);
168 bool ELFAsmParser::ParseDirectiveSymbolAttribute(StringRef Directive, SMLoc) {
179 StringRef Name;
207 bool ELFAsmParser::ParseSectionSwitch(StringRef Section, unsigned Type,
222 bool ELFAsmParser::ParseDirectiveSize(StringRef, SMLoc) {
223 StringRef Name;
244 bool ELFAsmParser::ParseSectionName(StringRef &SectionName) {
274 SectionName = StringRef(FirstLoc.getPointer(), Size);
286 static unsigned parseSectionFlags(const Triple &TT, StringRef flagsStr,
373 StringRef flagId = getTok().getIdentifier();
395 bool ELFAsmParser::ParseDirectivePushSection(StringRef s, SMLoc loc) {
406 bool ELFAsmParser::ParseDirectivePopSection(StringRef, SMLoc) {
412 bool ELFAsmParser::ParseDirectiveSection(StringRef, SMLoc loc) {
416 bool ELFAsmParser::maybeParseSectionType(StringRef &TypeName) {
449 bool ELFAsmParser::parseGroup(StringRef &GroupName, bool &IsComdat) {
462 StringRef Linkage;
479 StringRef Name;
500 StringRef UniqueStr;
517 static bool hasPrefix(StringRef SectionName, StringRef Prefix) {
522 static bool allowSectionTypeMismatch(const Triple &TT, StringRef SectionName,
540 StringRef SectionName;
545 StringRef TypeName;
547 StringRef GroupName;
587 StringRef FlagsStr = getTok().getStringContents();
725 bool ELFAsmParser::ParseDirectivePrevious(StringRef DirName, SMLoc) {
734 static MCSymbolAttr MCAttrForString(StringRef Type) {
753 bool ELFAsmParser::ParseDirectiveType(StringRef, SMLoc) {
754 StringRef Name;
787 StringRef Type;
806 bool ELFAsmParser::ParseDirectiveIdent(StringRef, SMLoc) {
810 StringRef Data = getTok().getIdentifier();
824 bool ELFAsmParser::ParseDirectiveSymver(StringRef, SMLoc) {
825 StringRef OriginalName, Name, Action;
861 bool ELFAsmParser::ParseDirectiveVersion(StringRef, SMLoc) {
865 StringRef Data = getTok().getIdentifier();
885 bool ELFAsmParser::ParseDirectiveWeakref(StringRef, SMLoc) {
888 StringRef AliasName;
897 StringRef Name;
909 bool ELFAsmParser::ParseDirectiveSubsection(StringRef, SMLoc) {
925 bool ELFAsmParser::ParseDirectiveCGProfile(StringRef S, SMLoc Loc) {