--raw was not always doing the right thing w.r.t. one-lining children. This checkin fixes that

llvm-svn: 192116
This commit is contained in:
Enrico Granata
2013-10-07 17:59:03 +00:00
parent 88ff20ef2a
commit 41b1653350
2 changed files with 8 additions and 3 deletions

View File

@@ -581,7 +581,7 @@ ValueObjectPrinter::PrintChildrenIfNeeded (bool value_printed,
uint32_t curr_ptr_depth = m_ptr_depth;
bool print_children = ShouldPrintChildren (is_failed_description,curr_ptr_depth);
bool print_oneline = (curr_ptr_depth > 0 || options.m_show_types) ? false : DataVisualization::ShouldPrintAsOneLiner(*m_valobj);
bool print_oneline = (curr_ptr_depth > 0 || options.m_show_types || options.m_be_raw) ? false : DataVisualization::ShouldPrintAsOneLiner(*m_valobj);
if (print_children)
{