[DebugInfo] Unify ChecksumKind and Checksum value in DIFile
authorScott Linder <scott@scottlinder.com>
Mon, 12 Feb 2018 19:45:54 +0000 (19:45 +0000)
committerScott Linder <scott@scottlinder.com>
Mon, 12 Feb 2018 19:45:54 +0000 (19:45 +0000)
commit7160384d40ac5025c5ab23cd898b5370749c66a1
treea917fb3bd760c42467541559e913a5b09de8094c
parent4a4f35f32411abb73360247e53d59e1fea1ca7c8
[DebugInfo] Unify ChecksumKind and Checksum value in DIFile

Rather than encode the absence of a checksum with a Kind variant, instead put
both the kind and value in a struct and wrap it in an Optional.

Differential Revision: http://reviews.llvm.org/D43043

llvm-svn: 324928
17 files changed:
llvm/include/llvm/IR/DIBuilder.h
llvm/include/llvm/IR/DebugInfoMetadata.h
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/Bitcode/Reader/MetadataLoader.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
llvm/lib/IR/AsmWriter.cpp
llvm/lib/IR/DIBuilder.cpp
llvm/lib/IR/DebugInfoMetadata.cpp
llvm/lib/IR/LLVMContextImpl.h
llvm/lib/IR/Verifier.cpp
llvm/test/Assembler/debug-info.ll
llvm/test/Bitcode/upgrade-dbg-checksum.ll [new file with mode: 0644]
llvm/test/Bitcode/upgrade-dbg-checksum.ll.bc [new file with mode: 0644]
llvm/test/Verifier/DIFile.ll
llvm/unittests/IR/MetadataTest.cpp