20 : SourceFile(DiaSourceFile) {}
24 return (S_OK == SourceFile->get_crc(&Crc)) ? Crc : 0;
29 return (S_OK == SourceFile->get_length(&Size)) ? Size : 0;
37 return invokeBstrMethod(*SourceFile, &IDiaInjectedSource::get_objectFilename);
42 &IDiaInjectedSource::get_virtualFilename);
46 DWORD Compression = 0;
47 if (S_OK != SourceFile->get_sourceCompression(&Compression))
54 if (S_OK != SourceFile->get_source(0, &DataSize,
nullptr))
57 std::vector<uint8_t> Buffer(DataSize);
58 if (S_OK != SourceFile->get_source(DataSize, &DataSize, Buffer.data()))
60 assert(Buffer.size() == DataSize);
61 return std::string(reinterpret_cast<const char *>(Buffer.data()),
This class represents lattice values for constants.
std::string getObjectFileName() const override
std::string getFileName() const override
std::string getCode() const override
uint64_t getCodeByteSize() const override
uint32_t getCrc32() const override
DIAInjectedSource(CComPtr< IDiaInjectedSource > DiaSourceFile)
std::string invokeBstrMethod(Obj &Object, HRESULT(__stdcall Obj::*Func)(BSTR *))
PDB_SourceCompression getCompression() const override
std::string getVirtualFileName() const override
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())