commit | 898ddf61c054ec67c4966d8471dc4751d1a361c9 | [log] [tgz] |
---|---|---|
author | Reid Kleckner <rnk@google.com> | Mon Jul 24 16:16:42 2017 +0000 |
committer | Reid Kleckner <rnk@google.com> | Mon Jul 24 16:16:42 2017 +0000 |
tree | 50d72ee94ffbdd3e103352d2c7b454161c11fffc | |
parent | 7f6b2534fb2d4dedb2d948686a6031d4739c3576 [diff] [blame] |
[codeview] Emit 'D' as the cv source language for D code This matches DMD: https://github.com/dlang/dmd/blob/522263965cf3a27ed16b31f3c3562db86cdeabec/src/ddmd/backend/cv8.c#L199 Fixes PR33899. llvm-svn: 308890
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index ec0f007..c9686cc 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
@@ -570,6 +570,8 @@ return SourceLanguage::Cobol; case dwarf::DW_LANG_Java: return SourceLanguage::Java; + case dwarf::DW_LANG_D: + return SourceLanguage::D; default: // There's no CodeView representation for this language, and CV doesn't // have an "unknown" option for the language field, so we'll use MASM,