llvm-readobj has a lot of hand rolled CodeView parsing code. Recently I introduced codeview::StringTableRef and codeview::StringTable which can read and write codeview stringtables from and to its serialized format. This patch updates llvm-readobj to use StringTableRef for parsing the string table, and since I'm in the code anyway, updates the file checksum parsing code to use VarStreamArray<FileChecksumEntry> which simplifies some error handling and parsing code.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
llvm/include/llvm/DebugInfo/CodeView/StringTable.h | ||
---|---|---|
39 ↗ | (On Diff #97522) | I went back and forth on this change, but I think it's a good idea. It's consistent with the way we did consumeObject etc. |