Restored the ability to set the format for expressions after changing the expression results over to ValueObjectSP objects.

llvm-svn: 115733
diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp
index 1f6c3de..516d941 100644
--- a/lldb/source/Commands/CommandObjectExpression.cpp
+++ b/lldb/source/Commands/CommandObjectExpression.cpp
@@ -237,6 +237,9 @@
     assert (result_valobj_sp.get());
     if (result_valobj_sp->GetError().Success())
     {
+        if (m_options.format != eFormatDefault)
+            result_valobj_sp->SetFormat (m_options.format);
+
         ValueObject::DumpValueObject (output_stream,
                                       m_exe_ctx.GetBestExecutionContextScope(),
                                       result_valobj_sp.get(),   // Variable object to dump