diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2018-06-13 16:23:21 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2018-06-13 16:23:21 +0000 |
commit | ad8d48f9036f92de1cb2ab1109236809d2243796 (patch) | |
tree | 34beddb46b5c524609d71f90a787f2e8c5d8903b /lldb/source/Core/Debugger.cpp | |
parent | 4e8be2c98e4142ce02c96865f81f7ed9bdbd5f82 (diff) | |
download | bcm5719-llvm-ad8d48f9036f92de1cb2ab1109236809d2243796.tar.gz bcm5719-llvm-ad8d48f9036f92de1cb2ab1109236809d2243796.zip |
[FileSpec] Delegate common operations to llvm::sys::path
With the recent changes in FileSpec to use LLVM's path style, it is
possible to delegate a bunch of common path operations to LLVM's path
helpers. This means we only have to maintain a single implementation and
at the same time can benefit from the efforts made by the rest of the
LLVM community.
This is part one of a set of patches. There was no obvious way to split
this so I just worked from top to bottom.
Differential revision: https://reviews.llvm.org/D48084
llvm-svn: 334615
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r-- | lldb/source/Core/Debugger.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index c8f3b92dce1..9d68d847075 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -605,8 +605,8 @@ LoadPluginCallback(void *baton, llvm::sys::fs::file_type ft, const FileSpec &file_spec) { Status error; - static ConstString g_dylibext("dylib"); - static ConstString g_solibext("so"); + static ConstString g_dylibext(".dylib"); + static ConstString g_solibext(".so"); if (!baton) return FileSpec::eEnumerateDirectoryResultQuit; |