summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-07-24 16:16:42 +0000
committerReid Kleckner <rnk@google.com>2017-07-24 16:16:42 +0000
commit898ddf61c054ec67c4966d8471dc4751d1a361c9 (patch)
tree50d72ee94ffbdd3e103352d2c7b454161c11fffc /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parent7f6b2534fb2d4dedb2d948686a6031d4739c3576 (diff)
downloadbcm5719-llvm-898ddf61c054ec67c4966d8471dc4751d1a361c9.tar.gz
bcm5719-llvm-898ddf61c054ec67c4966d8471dc4751d1a361c9.zip
[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
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
index ec0f007371d..c9686cccfdf 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
@@ -570,6 +570,8 @@ static SourceLanguage MapDWLangToCVLang(unsigned DWLang) {
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,
OpenPOWER on IntegriCloud