Details
- Reviewers
amccarth rnk - Commits
- rG5a1b5ef9ebe7: Make llvm-pdbdump print CV type records
Diff Detail
Event Timeline
The code LGTM. I don't know much about the lit tests yet.
Please include context in future diffs.
lgtm
include/llvm/DebugInfo/CodeView/CVTypeVisitor.h | ||
---|---|---|
82–83 | Woops, this comment is not accurate. Probably worth updating in this CL. This was part of a past bad idea to have this thing work on parts of non-contiguous type streams. | |
include/llvm/DebugInfo/CodeView/TypeDumper.h | ||
34 | You should document that this needs to be called in order on a type stream, otherwise it won't be able to cross-reference type indices to past type records. | |
tools/llvm-pdbdump/llvm-pdbdump.cpp | ||
365–366 | Any reason not to pass this boolean in above as the PrintRecordBytes to the dumper constructor instead of printing the bytes manually here? If you prefer "Bytes" to "LeafData" we can totally change it. |
tools/llvm-pdbdump/llvm-pdbdump.cpp | ||
---|---|---|
365–366 | Because both the type record and the binary data are conditional based on different conditions. In other words, if someone passed -dump-tpi-record-bytes but not -dump-tpi-records then they would want to see the block data but not the record data, and there's no way to do that. I could change the interface to the type dumper, but this seemed simpler. |
Also I can't commit this until the Error patch is in, since this one depends on that.
Woops, this comment is not accurate. Probably worth updating in this CL. This was part of a past bad idea to have this thing work on parts of non-contiguous type streams.