Thanks!
2014-08-09 0:31 GMT+03:00 Rafael Espindola <[email protected]>: > 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 > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits >
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
