Cleanup logging to use the new "std::string FileSpec::GetPath()" function. Also added a similar function for modules:

std::string
Module::GetSpecificationDescription () const;

This returns the module as "/usr/lib/libfoo.dylib" for normal files (calls "std::string FileSpec::GetPath()" on m_file) but it also might include the object name in case the module is for a .o file in a BSD archive ("/usr/lib/libfoo.a(bar.o)"). Cleaned up necessary logging code to use it.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@180717 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/OptionValueFileSpec.cpp b/source/Interpreter/OptionValueFileSpec.cpp
index c1bcae2..e56b48b 100644
--- a/source/Interpreter/OptionValueFileSpec.cpp
+++ b/source/Interpreter/OptionValueFileSpec.cpp
@@ -64,17 +64,7 @@
 
         if (m_current_value)
         {
-            if (m_current_value.GetDirectory())
-            {
-                strm << '"' << m_current_value.GetDirectory();
-                if (m_current_value.GetFilename())
-                    strm << '/' << m_current_value.GetFilename();
-                strm << '"';
-            }
-            else
-            {
-                strm << '"' << m_current_value.GetFilename() << '"';
-            }
+            strm << '"' << m_current_value.GetPath().c_str() << '"';
         }
     }
 }