We now read out the rest of the substreams from the DBI streams. One of these substreams, the FileInfo substream, contains information about which source files contribute to each module (aka compiland). This patch additionally parses out the file information from that substream, and dumps it in llvm-pdbdump.
Details
Diff Detail
Event Timeline
include/llvm/DebugInfo/PDB/Raw/ModInfo.h | ||
---|---|---|
47 | Maybe make the parameter be a const & | |
lib/DebugInfo/PDB/Raw/PDBDbiStream.cpp | ||
51 | Would it be easier to decode this field if it were named something like NumGlobalSyms or NumGlobalSymbols? | |
191 | I'd be nice if the readBytes interface took a MutableArrayRef<uint8_t>. Then you'd just pass in the std::vector. | |
216–218 | Couldn't you also do: auto *Buf = reinterpret_cast<const ulittle16_t *>(&FileInfoSubstream[1]); |
lib/DebugInfo/PDB/Raw/PDBDbiStream.cpp | ||
---|---|---|
51 | Actually I'm not 100% sure that that's even what it is. I could change it now, or wait till we actually start using it (which I assume by then I'll be more certain about its purpose) | |
191 | I've actually got a patch in progress that completely refactors the stream reading interface to make it so that I can read from mapped block streams and contiguous byte arrays (e.g. substreams) with the same interface. It might make more sense to change it in that patch since it focuses on the stream reading interface anyway. |
lib/DebugInfo/PDB/Raw/PDBDbiStream.cpp | ||
---|---|---|
216–218 | Did you mean auto *Buf = reinterpret_cast<const ulittle16_t*>(FI + 1); ? |
Maybe make the parameter be a const &