Lines Matching refs:Err

35 //     return Err("error while foo(): ") << E;
40 class Err {
45 Err(const char *InitialMsg) : Buffer(InitialMsg), Stream(Buffer) {}
46 Err(const char *SectionName, DataExtractor::Cursor &C)
52 template <typename T> Err &operator<<(T Val) {
57 Err &write_hex(unsigned long long Val) {
62 Err &operator<<(Error Val) {
112 return Err(".BTF", C);
114 return Err("invalid .BTF magic: ").write_hex(Magic);
117 return Err(".BTF", C);
119 return Err("unsupported .BTF version: ") << (unsigned)Version;
123 return Err(".BTF", C);
125 return Err("unexpected .BTF header length: ") << HdrLen;
136 return Err(".BTF", C);
138 return Err("invalid .BTF section size, expecting at-least ")
226 return Err("incomplete type definition in .BTF section:")
231 return Err("incomplete type definition in .BTF section:")
258 return Err(".BTF.ext", C);
260 return Err("invalid .BTF.ext magic: ").write_hex(Magic);
263 return Err(".BTF", C);
265 return Err("unsupported .BTF.ext version: ") << (unsigned)Version;
269 return Err(".BTF.ext", C);
271 return Err("unexpected .BTF.ext header length: ") << HdrLen;
279 return Err(".BTF.ext", C);
303 return Err(".BTF.ext", C);
305 return Err("unexpected .BTF.ext line info record length: ") << RecSize;
313 return Err(".BTF.ext", C);
315 return Err("") << "can't find section '" << SecName
325 return Err(".BTF.ext", C);
335 return Err(".BTF.ext", C);
346 return Err(".BTF.ext", C);
348 return Err("unexpected .BTF.ext field reloc info record length: ")
363 return Err(".BTF.ext", C);
373 return Err(".BTF.ext", C);
391 return Err("error while reading section name: ") << MaybeName.takeError();
399 return Err("can't find .BTF section");
401 return Err("can't find .BTF.ext section");