diff options
author | Scott Linder <scott@scottlinder.com> | 2018-02-12 19:45:54 +0000 |
---|---|---|
committer | Scott Linder <scott@scottlinder.com> | 2018-02-12 19:45:54 +0000 |
commit | 7160384d40ac5025c5ab23cd898b5370749c66a1 (patch) | |
tree | a917fb3bd760c42467541559e913a5b09de8094c /llvm/lib/IR/DIBuilder.cpp | |
parent | 4a4f35f32411abb73360247e53d59e1fea1ca7c8 (diff) | |
download | bcm5719-llvm-7160384d40ac5025c5ab23cd898b5370749c66a1.tar.gz bcm5719-llvm-7160384d40ac5025c5ab23cd898b5370749c66a1.zip |
[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
Diffstat (limited to 'llvm/lib/IR/DIBuilder.cpp')
-rw-r--r-- | llvm/lib/IR/DIBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/DIBuilder.cpp b/llvm/lib/IR/DIBuilder.cpp index f9aca8afec9..8cb95d2871d 100644 --- a/llvm/lib/IR/DIBuilder.cpp +++ b/llvm/lib/IR/DIBuilder.cpp @@ -204,8 +204,8 @@ DIImportedEntity *DIBuilder::createImportedDeclaration(DIScope *Context, } DIFile *DIBuilder::createFile(StringRef Filename, StringRef Directory, - DIFile::ChecksumKind CSKind, StringRef Checksum) { - return DIFile::get(VMContext, Filename, Directory, CSKind, Checksum); + Optional<DIFile::ChecksumInfo<StringRef>> CS) { + return DIFile::get(VMContext, Filename, Directory, CS); } DIMacro *DIBuilder::createMacro(DIMacroFile *Parent, unsigned LineNumber, |