From 73e8c4d09cf5a0497bc34b4f7c7206c59ae35669 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Wed, 7 Oct 2015 02:36:35 +0000 Subject: 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 --- lldb/source/Core/ValueObjectConstResult.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lldb/source/Core/ValueObjectConstResult.cpp') diff --git a/lldb/source/Core/ValueObjectConstResult.cpp b/lldb/source/Core/ValueObjectConstResult.cpp index 11925256708..6154829b240 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(); } -- cgit v1.2.3