Lines Matching refs:StringRef
26 template<bool (ELFAsmParser::*HandlerMethod)(StringRef, SMLoc)>
27 void addDirectiveHandler(StringRef Directive) {
34 bool ParseSectionSwitch(StringRef Section, unsigned Type, unsigned Flags,
82 bool ParseSectionDirectiveData(StringRef, SMLoc) {
87 bool ParseSectionDirectiveText(StringRef, SMLoc) {
92 bool ParseSectionDirectiveBSS(StringRef, SMLoc) {
97 bool ParseSectionDirectiveRoData(StringRef, SMLoc) {
102 bool ParseSectionDirectiveTData(StringRef, SMLoc) {
108 bool ParseSectionDirectiveTBSS(StringRef, SMLoc) {
114 bool ParseSectionDirectiveDataRel(StringRef, SMLoc) {
120 bool ParseSectionDirectiveDataRelRo(StringRef, SMLoc) {
126 bool ParseSectionDirectiveDataRelRoLocal(StringRef, SMLoc) {
132 bool ParseSectionDirectiveEhFrame(StringRef, SMLoc) {
138 bool ParseDirectivePushSection(StringRef, SMLoc);
139 bool ParseDirectivePopSection(StringRef, SMLoc);
140 bool ParseDirectiveSection(StringRef, SMLoc);
141 bool ParseDirectiveSize(StringRef, SMLoc);
142 bool ParseDirectivePrevious(StringRef, SMLoc);
143 bool ParseDirectiveType(StringRef, SMLoc);
144 bool ParseDirectiveIdent(StringRef, SMLoc);
145 bool ParseDirectiveSymver(StringRef, SMLoc);
146 bool ParseDirectiveVersion(StringRef, SMLoc);
147 bool ParseDirectiveWeakref(StringRef, SMLoc);
148 bool ParseDirectiveSymbolAttribute(StringRef, SMLoc);
149 bool ParseDirectiveSubsection(StringRef, SMLoc);
152 bool ParseSectionName(StringRef &SectionName);
161 bool ELFAsmParser::ParseDirectiveSymbolAttribute(StringRef Directive, SMLoc) {
172 StringRef Name;
194 bool ELFAsmParser::ParseSectionSwitch(StringRef Section, unsigned Type,
209 bool ELFAsmParser::ParseDirectiveSize(StringRef, SMLoc) {
210 StringRef Name;
230 bool ELFAsmParser::ParseSectionName(StringRef &SectionName) {
260 SectionName = StringRef(FirstLoc.getPointer(), Size);
306 static unsigned parseSectionFlags(StringRef flagsStr, bool *UseLastGroup) {
360 StringRef flagId = getTok().getIdentifier();
382 bool ELFAsmParser::ParseDirectivePushSection(StringRef s, SMLoc loc) {
393 bool ELFAsmParser::ParseDirectivePopSection(StringRef, SMLoc) {
400 bool ELFAsmParser::ParseDirectiveSection(StringRef, SMLoc loc) {
405 StringRef SectionName;
410 StringRef TypeName;
412 StringRef GroupName;
443 StringRef FlagsStr = getTok().getStringContents();
493 StringRef Linkage;
569 bool ELFAsmParser::ParseDirectivePrevious(StringRef DirName, SMLoc) {
578 static MCSymbolAttr MCAttrForString(StringRef Type) {
597 bool ELFAsmParser::ParseDirectiveType(StringRef, SMLoc) {
598 StringRef Name;
625 StringRef Type;
644 bool ELFAsmParser::ParseDirectiveIdent(StringRef, SMLoc) {
648 StringRef Data = getTok().getIdentifier();
658 bool ELFAsmParser::ParseDirectiveSymver(StringRef, SMLoc) {
659 StringRef Name;
675 StringRef AliasName;
679 if (AliasName.find('@') == StringRef::npos)
692 bool ELFAsmParser::ParseDirectiveVersion(StringRef, SMLoc) {
696 StringRef Data = getTok().getIdentifier();
718 bool ELFAsmParser::ParseDirectiveWeakref(StringRef, SMLoc) {
721 StringRef AliasName;
730 StringRef Name;
742 bool ELFAsmParser::ParseDirectiveSubsection(StringRef, SMLoc) {