24 std::unique_ptr<MappedBlockStream> Stream)
33 if (Header->Version !=
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");
53 return Name.takeError();
56 return ObjName.takeError();
59 return VName.takeError();
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
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 reload(const PDBStringTable &Strings)
InjectedSourceStream(std::unique_ptr< msf::MappedBlockStream > Stream)
LLVM_ABI Expected< StringRef > getStringForID(uint32_t ID) const
This is an optimization pass for GlobalISel generic memory operations.
Error make_error(ArgTs &&... Args)
Make a Error instance representing failure using the given error info type.
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.