24 InjectedSourceStream::InjectedSourceStream(
25 std::unique_ptr<MappedBlockStream> Stream)
26 : Stream(
std::move(Stream)) {}
37 "Invalid headerblock header version");
39 if (
auto EC = InjectedSourceTable.
load(Reader))
42 for (
const auto&
Entry : *
this) {
45 "Invalid headerbock entry size");
46 if (
Entry.second.Version !=
49 "Invalid headerbock entry version");
54 return Name.takeError();
57 return ObjName.takeError();
60 return VName.takeError();
This class represents lattice values for constants.
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
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...
Error reload(const PDBStringTable &Strings)
Expected< StringRef > getStringForID(uint32_t ID) const
static ErrorSuccess success()
Create a success value.
Error load(BinaryStreamReader &Stream)
uint32_t bytesRemaining() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Lightweight error class with error context and mandatory checking.
Provides read only access to a subclass of BinaryStream.