summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorNathan Lanza <nathan@lanza.io>2019-03-11 23:27:59 +0000
committerNathan Lanza <nathan@lanza.io>2019-03-11 23:27:59 +0000
commitcc51dc649abac6a5404eae91dc9be56eeda4d611 (patch)
tree457fc9c751022007582c33ca77c984c110b82805 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parenteae78b5157dc0582cf32710d2ade9bbcd7f0fc94 (diff)
downloadbcm5719-llvm-cc51dc649abac6a5404eae91dc9be56eeda4d611.tar.gz
bcm5719-llvm-cc51dc649abac6a5404eae91dc9be56eeda4d611.zip
Add Swift enumerator value for CodeView::SourceLanguage
Summary: Swift now generates PDBs for debugging on Windows. llvm and lldb need a language enumerator value too properly handle the output emitted by swiftc. Subscribers: jdoerfert, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D59231 llvm-svn: 355882
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 d33708a8833..9bce1c42757 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
@@ -699,6 +699,8 @@ static SourceLanguage MapDWLangToCVLang(unsigned DWLang) {
return SourceLanguage::Java;
case dwarf::DW_LANG_D:
return SourceLanguage::D;
+ case dwarf::DW_LANG_Swift:
+ return SourceLanguage::Swift;
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