Home | History | Annotate | Download | only in MCParser

Lines Matching refs:StringRef

49   StringRef Name;
50 StringRef Body;
51 std::vector<StringRef> Parameters;
54 Macro(StringRef N, StringRef B, const std::vector<StringRef> &P) :
121 StringRef CppHashFilename;
136 StringRef Directive,
180 bool HandleMacroEntry(StringRef Name, SMLoc NameLoc, const Macro *M);
181 bool expandMacro(SmallString<256> &Buf, StringRef Body,
182 const std::vector<StringRef> &Parameters,
210 StringRef ParseStringToEndOfStatement();
212 bool ParseAssignment(StringRef Name, bool allow_redef);
221 bool ParseIdentifier(StringRef &Res);
226 bool ParseDirectiveAscii(StringRef IDVal, bool ZeroTerminated);
232 bool ParseDirectiveSet(StringRef IDVal, bool allow_redef); // ".set", ".equ", ".equiv"
265 template<bool (GenericAsmParser::*Handler)(StringRef, SMLoc)>
266 void AddDirectiveHandler(StringRef Directive) {
338 bool ParseDirectiveFile(StringRef, SMLoc DirectiveLoc);
339 bool ParseDirectiveLine(StringRef, SMLoc DirectiveLoc);
340 bool ParseDirectiveLoc(StringRef, SMLoc DirectiveLoc);
341 bool ParseDirectiveStabs(StringRef, SMLoc DirectiveLoc);
342 bool ParseDirectiveCFISections(StringRef, SMLoc DirectiveLoc);
343 bool ParseDirectiveCFIStartProc(StringRef, SMLoc DirectiveLoc);
344 bool ParseDirectiveCFIEndProc(StringRef, SMLoc DirectiveLoc);
345 bool ParseDirectiveCFIDefCfa(StringRef, SMLoc DirectiveLoc);
346 bool ParseDirectiveCFIDefCfaOffset(StringRef, SMLoc DirectiveLoc);
347 bool ParseDirectiveCFIAdjustCfaOffset(StringRef, SMLoc DirectiveLoc);
348 bool ParseDirectiveCFIDefCfaRegister(StringRef, SMLoc DirectiveLoc);
349 bool ParseDirectiveCFIOffset(StringRef, SMLoc DirectiveLoc);
350 bool ParseDirectiveCFIRelOffset(StringRef, SMLoc DirectiveLoc);
351 bool ParseDirectiveCFIPersonalityOrLsda(StringRef, SMLoc DirectiveLoc);
352 bool ParseDirectiveCFIRememberState(StringRef, SMLoc DirectiveLoc);
353 bool ParseDirectiveCFIRestoreState(StringRef, SMLoc DirectiveLoc);
354 bool ParseDirectiveCFISameValue(StringRef, SMLoc DirectiveLoc);
355 bool ParseDirectiveCFIRestore(StringRef, SMLoc DirectiveLoc);
356 bool ParseDirectiveCFIEscape(StringRef, SMLoc DirectiveLoc);
357 bool ParseDirectiveCFISignalFrame(StringRef, SMLoc DirectiveLoc);
359 bool ParseDirectiveMacrosOnOff(StringRef, SMLoc DirectiveLoc);
360 bool ParseDirectiveMacro(StringRef, SMLoc DirectiveLoc);
361 bool ParseDirectiveEndMacro(StringRef, SMLoc DirectiveLoc);
363 bool ParseDirectiveLEB128(StringRef, SMLoc);
516 StringRef(), SrcMgr.getMemoryBuffer(CurBuffer)->getBufferIdentifier());
594 StringRef AsmParser::ParseStringToEndOfStatement() {
602 return StringRef(Start, End - Start);
657 StringRef Identifier;
662 std::pair<StringRef, StringRef> Split = Identifier.split('@');
697 StringRef IDVal = getTok().getString();
1005 StringRef IDVal;
1281 StringRef());
1328 StringRef Filename = getTok().getString();
1396 bool AsmParser::expandMacro(SmallString<256> &Buf, StringRef Body,
1397 const std::vector<StringRef> &Parameters,
1465 StringRef Argument(Begin, I - (Pos +1));
1497 bool AsmParser::HandleMacroEntry(StringRef Name, SMLoc NameLoc,
1539 StringRef Body = M->Body;
1595 bool AsmParser::ParseAssignment(StringRef Name, bool allow_redef) {
1657 bool AsmParser::ParseIdentifier(StringRef &Res) {
1676 Res = StringRef(DollarLoc.getPointer(),
1697 bool AsmParser::ParseDirectiveSet(StringRef IDVal, bool allow_redef) {
1698 StringRef Name;
1714 StringRef Str = getTok().getStringContents();
1770 bool AsmParser::ParseDirectiveAscii(StringRef IDVal, bool ZeroTerminated) {
1784 getStreamer().EmitBytes(StringRef("\0", 1), DEFAULT_ADDRSPACE);
1860 StringRef IDVal = getTok().getString();
2121 StringRef Name;
2154 StringRef Name;
2227 StringRef Str = ParseStringToEndOfStatement();
2319 StringRef Name;
2422 bool GenericAsmParser::ParseDirectiveFile(StringRef, SMLoc DirectiveLoc) {
2438 StringRef Path = getTok().getString();
2442 StringRef Directory;
2443 StringRef Filename;
2474 bool GenericAsmParser::ParseDirectiveLine(StringRef, SMLoc DirectiveLoc) {
2500 bool GenericAsmParser::ParseDirectiveLoc(StringRef, SMLoc DirectiveLoc) {
2535 StringRef Name;
2595 Isa, Discriminator, StringRef());
2602 bool GenericAsmParser::ParseDirectiveStabs(StringRef Directive,
2609 bool GenericAsmParser::ParseDirectiveCFISections(StringRef,
2611 StringRef Name;
2642 bool GenericAsmParser::ParseDirectiveCFIStartProc(StringRef,
2650 bool GenericAsmParser::ParseDirectiveCFIEndProc(StringRef, SMLoc DirectiveLoc) {
2673 bool GenericAsmParser::ParseDirectiveCFIDefCfa(StringRef,
2693 bool GenericAsmParser::ParseDirectiveCFIDefCfaOffset(StringRef,
2705 bool GenericAsmParser::ParseDirectiveCFIAdjustCfaOffset(StringRef,
2717 bool GenericAsmParser::ParseDirectiveCFIDefCfaRegister(StringRef,
2729 bool GenericAsmParser::ParseDirectiveCFIOffset(StringRef, SMLoc DirectiveLoc) {
2749 bool GenericAsmParser::ParseDirectiveCFIRelOffset(StringRef,
2793 bool GenericAsmParser::ParseDirectiveCFIPersonalityOrLsda(StringRef IDVal,
2808 StringRef Name;
2825 bool GenericAsmParser::ParseDirectiveCFIRememberState(StringRef IDVal,
2833 bool GenericAsmParser::ParseDirectiveCFIRestoreState(StringRef IDVal,
2841 bool GenericAsmParser::ParseDirectiveCFISameValue(StringRef IDVal,
2855 bool GenericAsmParser::ParseDirectiveCFIRestore(StringRef IDVal,
2868 bool GenericAsmParser::ParseDirectiveCFIEscape(StringRef IDVal,
2892 bool GenericAsmParser::ParseDirectiveCFISignalFrame(StringRef Directive,
2906 bool GenericAsmParser::ParseDirectiveMacrosOnOff(StringRef Directive,
2919 bool GenericAsmParser::ParseDirectiveMacro(StringRef Directive,
2921 StringRef Name;
2925 std::vector<StringRef> Parameters;
2928 StringRef Parameter;
2975 StringRef Body = StringRef(BodyStart, BodyEnd - BodyStart);
2983 bool GenericAsmParser::ParseDirectiveEndMacro(StringRef Directive,
3001 bool GenericAsmParser::ParseDirectiveLEB128(StringRef DirName, SMLoc) {