summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2018-11-27 05:37:27 +0000
committerBruce Mitchener <bruce.mitchener@gmail.com>2018-11-27 05:37:27 +0000
commitb8233f8c0602c3dc0bea3d5ad51498cdae275fce (patch)
treedecb0fa2ff716db26312bb1405b32edf0226da49
parent1b553a7472e7eb124100bd472832bb0a27316a95 (diff)
downloadbcm5719-llvm-b8233f8c0602c3dc0bea3d5ad51498cdae275fce.tar.gz
bcm5719-llvm-b8233f8c0602c3dc0bea3d5ad51498cdae275fce.zip
Add support for the Dylan language to ClangASTContext
Summary: This change adds eLanguageTypeDylan to the set of languages supported by ClangASTContext. Debug info generated by the Open Dylan compiler's LLVM back-end was designed to be compatible with C debug info. Patch by Peter Housel. Reviewers: clayborg Reviewed By: clayborg Subscribers: brucem, lldb-commits, aprantl Differential Revision: https://reviews.llvm.org/D54886 llvm-svn: 347637
-rw-r--r--lldb/source/Symbol/ClangASTContext.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp
index 600e26fe32d..f13631076b4 100644
--- a/lldb/source/Symbol/ClangASTContext.cpp
+++ b/lldb/source/Symbol/ClangASTContext.cpp
@@ -119,7 +119,9 @@ ClangASTContextSupportsLanguage(lldb::LanguageType language) {
language == eLanguageTypeRust ||
language == eLanguageTypeExtRenderScript ||
// Use Clang for D until there is a proper language plugin for it
- language == eLanguageTypeD;
+ language == eLanguageTypeD ||
+ // Open Dylan compiler debug info is designed to be Clang-compatible
+ language == eLanguageTypeDylan;
}
// Checks whether m1 is an overload of m2 (as opposed to an override). This is
OpenPOWER on IntegriCloud