Added the ability to get an set the desired format for SBValue objects.

Fixed the display of complex numbers in lldb_private::DataExtractor::Dump(...)
and also fixed other edge display cases in lldb_private::ClangASTType::DumpTypeValue(...).

llvm-svn: 122895
This commit is contained in:
Greg Clayton
2011-01-05 18:43:15 +00:00
parent 63c41a2458
commit dc4e9637ac
6 changed files with 185 additions and 57 deletions

View File

@@ -489,3 +489,19 @@ SBValue::GetDescription (SBStream &description)
return true;
}
lldb::Format
SBValue::GetFormat () const
{
if (m_opaque_sp)
return m_opaque_sp->GetFormat();
return eFormatDefault;
}
void
SBValue::SetFormat (lldb::Format format)
{
if (m_opaque_sp)
m_opaque_sp->SetFormat(format);
}