From 212f3b91ee170d7ab3efb0a2dc23e763fd6aab66 Mon Sep 17 00:00:00 2001 From: Paul Robinson Date: Fri, 12 Jan 2018 22:19:03 +0000 Subject: [DWARFv5] Have -gdwarf-5 generate MD5 checksums Differential Revision: https://reviews.llvm.org/D42011 llvm-svn: 322413 --- clang/lib/CodeGen/CGDebugInfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/lib/CodeGen') diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index cb15c76122c..d29e0791fbb 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -365,7 +365,8 @@ llvm::DIFile::ChecksumKind CGDebugInfo::computeChecksum(FileID FID, SmallString<32> &Checksum) const { Checksum.clear(); - if (!CGM.getCodeGenOpts().EmitCodeView) + if (!CGM.getCodeGenOpts().EmitCodeView && + CGM.getCodeGenOpts().DwarfVersion < 5) return llvm::DIFile::CSK_None; SourceManager &SM = CGM.getContext().getSourceManager(); -- cgit v1.2.3