r215242 - Use llvm::sys::path::native instead of llvm::sys::fs::normalize_separators.

Yaron Keren yaron.keren at gmail.com
Fri Aug 8 14:49:12 PDT 2014


Thanks!


2014-08-09 0:31 GMT+03:00 Rafael Espindola <rafael.espindola at gmail.com>:

> Author: rafael
> Date: Fri Aug  8 16:31:04 2014
> New Revision: 215242
>
> URL: http://llvm.org/viewvc/llvm-project?rev=215242&view=rev
> Log:
> Use llvm::sys::path::native instead of llvm::sys::fs::normalize_separators.
>
> llvm::sys::path::native has a superset of the functionality and this was
> the
> only use of llvm::sys::fs::normalize_separators.
>
> Modified:
>     cfe/trunk/lib/Lex/PPDirectives.cpp
>
> Modified: cfe/trunk/lib/Lex/PPDirectives.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPDirectives.cpp?rev=215242&r1=215241&r2=215242&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/Lex/PPDirectives.cpp (original)
> +++ cfe/trunk/lib/Lex/PPDirectives.cpp Fri Aug  8 16:31:04 2014
> @@ -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::HandleIncludeDirectiv
>    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,
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140809/3c357cf3/attachment.html>


More information about the cfe-commits mailing list