LLVM currently supports CSK_MD5 and CSK_SHA1 source file checksums in debug info. This change adds support for CSK_SHA256 checksums.
The SHA256 checksums are supported by the CodeView debug format.
Paths
| Differential D75785
Add support for SHA256 source file checksums in debug info ClosedPublic Authored by arlosi on Mar 6 2020, 4:22 PM.
Details Summary LLVM currently supports CSK_MD5 and CSK_SHA1 source file checksums in debug info. This change adds support for CSK_SHA256 checksums. The SHA256 checksums are supported by the CodeView debug format.
Diff Detail Event TimelineComment Actions Sounds reasonable. One inline question about the test.
arlosi marked an inline comment as done. Comment ActionsRenamed test to appropriate location; modified test to test to disassemble and reassemble again. This revision is now accepted and ready to land.Mar 9 2020, 12:43 PM Comment Actions The previous update contained only the requested changes commit, losing the rest of the change. Comment Actions
Sure, thanks for the patch! Closed by commit rG1478ed69d3df: Add support for SHA256 source file checksums in debug info (authored by arlosi, committed by rnk). · Explain WhyMar 12 2020, 4:51 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 248857 llvm/docs/LangRef.rst
llvm/include/llvm/IR/DebugInfoMetadata.h
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
llvm/lib/IR/DebugInfoMetadata.cpp
llvm/lib/IR/Verifier.cpp
llvm/test/Bitcode/upgrade-dbg-checksum.ll |
I would expect a round-trip (as | dis | as |dis) test rather than an upgrade test when adding an extra enumerator. What am I missing?