Print object names in case we have a .o file in a static archive when logging
DWARF errors and warnings.

llvm-svn: 140918
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
index 7beadf8..bebfdff 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
@@ -2347,6 +2347,9 @@
                m_obj_file->GetFileSpec().GetDirectory().GetCString(),
                m_obj_file->GetFileSpec().GetFilename().GetCString());
 
+    if (m_obj_file->GetModule()->GetObjectName())
+        ::fprintf (stderr, "(%s) ", m_obj_file->GetModule()->GetObjectName().GetCString());
+
     va_list args;
     va_start (args, format);
     vfprintf (stderr, format, args);
@@ -2361,6 +2364,9 @@
                m_obj_file->GetFileSpec().GetDirectory().GetCString(),
                m_obj_file->GetFileSpec().GetFilename().GetCString());
 
+    if (m_obj_file->GetModule()->GetObjectName())
+        ::fprintf (stderr, "(%s) ", m_obj_file->GetModule()->GetObjectName().GetCString());
+
     va_list args;
     va_start (args, format);
     vfprintf (stderr, format, args);