diff options
author | Greg Clayton <gclayton@apple.com> | 2015-08-14 20:02:05 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2015-08-14 20:02:05 +0000 |
commit | 8b4edba9da520dae8a577d8d29caa3f8bc96dc4d (patch) | |
tree | ad3f5109ed029a870d1cc01a1bd964811bfdba3d /lldb/source/Core/Module.cpp | |
parent | 4ca630be18d707f24cec8d790dbfc60a23f9f472 (diff) | |
download | bcm5719-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.cpp | 11 |
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 () { |