diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-09-24 11:17:38 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-09-24 11:17:38 +0000 |
commit | 08f90e3d5713923ff10e7a366120eb7f80bf9335 (patch) | |
tree | 81d0d26d9a3afa94d388ef7ef5992b85a71fe584 | |
parent | b6d11def374cc8fb4186cba7c403110623e8d61d (diff) | |
download | bcm5719-llvm-08f90e3d5713923ff10e7a366120eb7f80bf9335.tar.gz bcm5719-llvm-08f90e3d5713923ff10e7a366120eb7f80bf9335.zip |
[lldb] Use convert_to_slash in CppModuleConfiguration
That's what we actually want to do. Might fix the Windows bot.
llvm-svn: 372729
-rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp b/lldb/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp index 47c0345d6a0..1f9d33e9beb 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp +++ b/lldb/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp @@ -31,9 +31,9 @@ bool CppModuleConfiguration::SetOncePath::TrySet(llvm::StringRef path) { } bool CppModuleConfiguration::analyzeFile(const FileSpec &f) { - llvm::SmallString<256> dir_buffer = f.GetDirectory().GetStringRef(); - // Convert to posix style so that we can use '/'. - llvm::sys::path::native(dir_buffer, llvm::sys::path::Style::posix); + using namespace llvm::sys::path; + // Convert to slashes to make following operations simpler. + std::string dir_buffer = convert_to_slash(f.GetDirectory().GetStringRef()); llvm::StringRef posix_dir(dir_buffer); // Check for /c++/vX/ that is used by libc++. |