diff options
author | Greg Clayton <gclayton@apple.com> | 2013-04-29 17:25:54 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-04-29 17:25:54 +0000 |
commit | b5ad4ec7a31206227b1cd657dd41b21cc6afc98e (patch) | |
tree | 68f35ccdff9e1410bca21aeb2e216fa91d45a19f /lldb/source/Interpreter/OptionValueFileSpec.cpp | |
parent | f1f1c626e7fcd3db60641be223308390de288a41 (diff) | |
download | bcm5719-llvm-b5ad4ec7a31206227b1cd657dd41b21cc6afc98e.tar.gz bcm5719-llvm-b5ad4ec7a31206227b1cd657dd41b21cc6afc98e.zip |
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.
llvm-svn: 180717
Diffstat (limited to 'lldb/source/Interpreter/OptionValueFileSpec.cpp')
-rw-r--r-- | lldb/source/Interpreter/OptionValueFileSpec.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lldb/source/Interpreter/OptionValueFileSpec.cpp b/lldb/source/Interpreter/OptionValueFileSpec.cpp index c1bcae2fc6c..e56b48b5579 100644 --- a/lldb/source/Interpreter/OptionValueFileSpec.cpp +++ b/lldb/source/Interpreter/OptionValueFileSpec.cpp @@ -64,17 +64,7 @@ OptionValueFileSpec::DumpValue (const ExecutionContext *exe_ctx, Stream &strm, u 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() << '"'; } } } |