Lines Matching refs:Str
80 static bool SkipToToken(StringRef &Str) { in SkipToToken() argument
82 if (Str.empty()) in SkipToToken()
86 if (size_t Pos = Str.find_first_not_of(" \t\r\n,")) { in SkipToToken()
87 Str = Str.substr(Pos); in SkipToToken()
92 if (Str[0] == '#') { in SkipToToken()
93 Str = Str.substr(Str.find_first_of('\n')); in SkipToToken()
102 StringRef &Str, in ByteArrayFromString() argument
104 while (SkipToToken(Str)) { in ByteArrayFromString()
106 if (Str[0] == '[' || Str[0] == ']') in ByteArrayFromString()
110 size_t Next = Str.find_first_of(" \t\n\r,#[]"); in ByteArrayFromString()
111 StringRef Value = Str.substr(0, Next); in ByteArrayFromString()
119 Str = Str.substr(Str.find('\n')); in ByteArrayFromString()
127 Str = Str.substr(Next); in ByteArrayFromString()
170 StringRef Str = Buffer.getBuffer(); in disassemble() local
173 while (SkipToToken(Str)) { in disassemble()
177 if (Str[0] == '[') { in disassemble()
179 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error, in disassemble()
184 Str = Str.drop_front(); in disassemble()
186 } else if (Str[0] == ']') { in disassemble()
188 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error, in disassemble()
193 Str = Str.drop_front(); in disassemble()
198 ErrorOccurred |= ByteArrayFromString(ByteArray, Str, SM); in disassemble()
206 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error, in disassemble()