Author: teemperor
Date: Tue Sep 24 04:17:38 2019
New Revision: 372729

URL: http://llvm.org/viewvc/llvm-project?rev=372729&view=rev
Log:
[lldb] Use convert_to_slash in CppModuleConfiguration

That's what we actually want to do. Might fix the Windows bot.

Modified:
    lldb/trunk/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp

Modified: 
lldb/trunk/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp?rev=372729&r1=372728&r2=372729&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp 
(original)
+++ lldb/trunk/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp 
Tue Sep 24 04:17:38 2019
@@ -31,9 +31,9 @@ bool CppModuleConfiguration::SetOncePath
 }
 
 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++.


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to