24 std::unique_ptr<MappedBlockStream> Stream)
36 "Invalid headerblock header version");
38 if (
auto EC = InjectedSourceTable.
load(Reader))
41 for (
const auto& Entry : *
this) {
44 "Invalid headerbock entry size");
45 if (Entry.second.Version !=
48 "Invalid headerbock entry version");
51 auto Name = Strings.getStringForID(Entry.second.FileNI);
53 return Name.takeError();
54 auto ObjName = Strings.getStringForID(Entry.second.ObjNI);
56 return ObjName.takeError();
57 auto VName = Strings.getStringForID(Entry.second.VFileNI);
59 return VName.takeError();
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Provides read only access to a subclass of BinaryStream.
Error readObject(const T *&Dest)
Get a pointer to an object of type T from the underlying stream, as if by memcpy, and store the resul...
uint64_t bytesRemaining() const
Lightweight error class with error context and mandatory checking.
static ErrorSuccess success()
Create a success value.
Error load(BinaryStreamReader &Stream)
Error reload(const PDBStringTable &Strings)
InjectedSourceStream(std::unique_ptr< msf::MappedBlockStream > Stream)
This is an optimization pass for GlobalISel generic memory operations.
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Implement std::hash so that hash_code can be used in STL containers.