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();
727 bool ELFAsmParser::parseDirectivePrevious(StringRef DirName, SMLoc) {
736 static MCSymbolAttr MCAttrForString(StringRef Type) {
755 bool ELFAsmParser::parseDirectiveType(StringRef, SMLoc) {
756 StringRef Name;
789 StringRef Type;
808 bool ELFAsmParser::parseDirectiveIdent(StringRef, SMLoc) {
812 StringRef Data = getTok().getIdentifier();
826 bool ELFAsmParser::parseDirectiveSymver(StringRef, SMLoc) {
827 StringRef OriginalName, Name, Action;
863 bool ELFAsmParser::parseDirectiveVersion(StringRef, SMLoc) {
867 StringRef Data = getTok().getIdentifier();
887 bool ELFAsmParser::parseDirectiveWeakref(StringRef, SMLoc) {
890 StringRef AliasName;
899 StringRef Name;
911 bool ELFAsmParser::parseDirectiveSubsection(StringRef, SMLoc) {
927 bool ELFAsmParser::parseDirectiveCGProfile(StringRef S, SMLoc Loc) {