summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorPaul Robinson <paul.robinson@sony.com>2018-01-12 22:19:03 +0000
committerPaul Robinson <paul.robinson@sony.com>2018-01-12 22:19:03 +0000
commit212f3b91ee170d7ab3efb0a2dc23e763fd6aab66 (patch)
tree423792b0a1597ad14ab92528c041a48b09a4b5a4 /clang/lib/CodeGen
parentf61910d8f6dac295f9281f1a27a0e0a09b1bc1de (diff)
downloadbcm5719-llvm-212f3b91ee170d7ab3efb0a2dc23e763fd6aab66.tar.gz
bcm5719-llvm-212f3b91ee170d7ab3efb0a2dc23e763fd6aab66.zip
[DWARFv5] Have -gdwarf-5 generate MD5 checksums
Differential Revision: https://reviews.llvm.org/D42011 llvm-svn: 322413
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp3
1 files changed, 2 insertions, 1 deletions
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();
OpenPOWER on IntegriCloud