62 "Publics Stream does not contain a header.");
67 "Publics Stream does not contain a header.");
70 if (
auto E = PublicsTable.
read(Reader))
75 if (
auto EC = Reader.
readArray(AddressMap, NumAddressMapEntries))
78 "Could not read an address map."));
84 "Could not read a thunk map."));
91 "Could not read a section map."));
96 "Corrupted publics stream.");
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
Error readArray(ArrayRef< T > &Array, uint32_t NumElements)
Get a reference to a NumElements element array of objects of type T from the underlying stream as if ...
Lightweight error class with error context and mandatory checking.
static ErrorSuccess success()
Create a success value.
Error read(BinaryStreamReader &Reader)
uint32_t getSymHash() const
uint32_t getThunkTableOffset() const
PublicsStream(std::unique_ptr< msf::MappedBlockStream > Stream)
uint16_t getThunkTableSection() const
This is an optimization pass for GlobalISel generic memory operations.
Error joinErrors(Error E1, Error E2)
Concatenate errors.
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.