diff options
| author | Enrico Granata <egranata@apple.com> | 2015-10-07 02:36:35 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2015-10-07 02:36:35 +0000 |
| commit | 73e8c4d09cf5a0497bc34b4f7c7206c59ae35669 (patch) | |
| tree | 1be7e60f80ce16a43192d6405845c565ef2fbe37 /lldb/source/Core/ValueObjectConstResult.cpp | |
| parent | d54f7fb8eb3c0817d17c89640a8e3bcf0622c952 (diff) | |
Route the preferred-display-language mechanism to the ValueObjectPrinter and actually fill in a few gaps for dynamic and synthetic values to be able to adopt this in useful ways
llvm-svn: 249507
Diffstat (limited to 'lldb/source/Core/ValueObjectConstResult.cpp')
| -rw-r--r-- | lldb/source/Core/ValueObjectConstResult.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Core/ValueObjectConstResult.cpp b/lldb/source/Core/ValueObjectConstResult.cpp index 11925256708a..6154829b240e 100644 --- a/lldb/source/Core/ValueObjectConstResult.cpp +++ b/lldb/source/Core/ValueObjectConstResult.cpp @@ -374,5 +374,7 @@ ValueObjectConstResult::Cast (const CompilerType &compiler_type) lldb::LanguageType ValueObjectConstResult::GetPreferredDisplayLanguage () { - return lldb::eLanguageTypeUnknown; + if (m_preferred_display_language != lldb::eLanguageTypeUnknown) + return m_preferred_display_language; + return GetCompilerTypeImpl().GetMinimumLanguage(); } |
