Add support for SHA256 source file checksums in debug info
authorArlo Siemsen <arsiem@microsoft.com>
Thu, 12 Mar 2020 23:25:01 +0000 (16:25 -0700)
committerReid Kleckner <rnk@google.com>
Thu, 12 Mar 2020 23:32:05 +0000 (16:32 -0700)
commit1478ed69d3dfc177a77e799af13075dd4474bcd0
tree8b94fc4e13985a8259f6e853fddb50941ddd83b8
parent03f5f6bebd48ee2131fb15d10eb1cea9fe38724f
Add support for SHA256 source file checksums in debug info

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.

Reviewed By: aprantl

Differential Revision: https://reviews.llvm.org/D75785
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/Assembler/dbg-checksum.ll [new file with mode: 0644]