]> granicus.if.org Git - clang/commitdiff
Use llvm::sys::path::native instead of llvm::sys::fs::normalize_separators.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 8 Aug 2014 21:31:04 +0000 (21:31 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 8 Aug 2014 21:31:04 +0000 (21:31 +0000)
llvm::sys::path::native has a superset of the functionality and this was the
only use of llvm::sys::fs::normalize_separators.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215242 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PPDirectives.cpp

index 6b99ce6a40336411e014f490f7fddf69a7c345fd..0d2bb11ed9d28cd150fd5833a83239c122d168d1 100644 (file)
@@ -25,7 +25,7 @@
 #include "clang/Lex/Pragma.h"
 #include "llvm/ADT/APInt.h"
 #include "llvm/Support/ErrorHandling.h"
-#include "llvm/Support/FileSystem.h"
+#include "llvm/Support/Path.h"
 #include "llvm/Support/SaveAndRestore.h"
 using namespace clang;
 
@@ -1441,7 +1441,7 @@ void Preprocessor::HandleIncludeDirective(SourceLocation HashLoc,
   SmallString<128> NormalizedPath;
   if (LangOpts.MSVCCompat) {
     NormalizedPath = Filename.str();
-    llvm::sys::fs::normalize_separators(NormalizedPath);
+    llvm::sys::path::native(NormalizedPath);
   }
   const FileEntry *File = LookupFile(
       FilenameLoc, LangOpts.MSVCCompat ? NormalizedPath.c_str() : Filename,