summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Module.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-08-14 20:02:05 +0000
committerGreg Clayton <gclayton@apple.com>2015-08-14 20:02:05 +0000
commit8b4edba9da520dae8a577d8d29caa3f8bc96dc4d (patch)
treead3f5109ed029a870d1cc01a1bd964811bfdba3d /lldb/source/Core/Module.cpp
parent4ca630be18d707f24cec8d790dbfc60a23f9f472 (diff)
downloadbcm5719-llvm-8b4edba9da520dae8a577d8d29caa3f8bc96dc4d.tar.gz
bcm5719-llvm-8b4edba9da520dae8a577d8d29caa3f8bc96dc4d.zip
Move all clang type system DWARF type parsing into ClangASTContext.cpp.
Another step towards isolating all language/AST specific code into the files to further abstract specific implementations of parsing types for a given language. llvm-svn: 245090
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r--lldb/source/Core/Module.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp
index cc8a59003b1..fff9970a649 100644
--- a/lldb/source/Core/Module.cpp
+++ b/lldb/source/Core/Module.cpp
@@ -416,6 +416,17 @@ Module::GetUUID()
return m_uuid;
}
+TypeSystem *
+Module::GetTypeSystemForLanguage (LanguageType language)
+{
+ if (language != eLanguageTypeSwift)
+ {
+ // For now assume all languages except swift use the ClangASTContext for types
+ return &GetClangASTContext();
+ }
+ return nullptr;
+}
+
ClangASTContext &
Module::GetClangASTContext ()
{
OpenPOWER on IntegriCloud