<div dir="rtl"><div dir="ltr">Thanks!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div dir="ltr">2014-08-09 0:31 GMT+03:00 Rafael Espindola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span>:</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: rafael<br>
Date: Fri Aug 8 16:31:04 2014<br>
New Revision: 215242<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=215242&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=215242&view=rev</a><br>
Log:<br>
Use llvm::sys::path::native instead of llvm::sys::fs::normalize_separators.<br>
<br>
llvm::sys::path::native has a superset of the functionality and this was the<br>
only use of llvm::sys::fs::normalize_separators.<br>
<br>
Modified:<br>
cfe/trunk/lib/Lex/PPDirectives.cpp<br>
<br>
Modified: cfe/trunk/lib/Lex/PPDirectives.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPDirectives.cpp?rev=215242&r1=215241&r2=215242&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPDirectives.cpp?rev=215242&r1=215241&r2=215242&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/lib/Lex/PPDirectives.cpp (original)<br>
+++ cfe/trunk/lib/Lex/PPDirectives.cpp Fri Aug 8 16:31:04 2014<br>
@@ -25,7 +25,7 @@<br>
#include "clang/Lex/Pragma.h"<br>
#include "llvm/ADT/APInt.h"<br>
#include "llvm/Support/ErrorHandling.h"<br>
-#include "llvm/Support/FileSystem.h"<br>
+#include "llvm/Support/Path.h"<br>
#include "llvm/Support/SaveAndRestore.h"<br>
using namespace clang;<br>
<br>
@@ -1441,7 +1441,7 @@ void Preprocessor::HandleIncludeDirectiv<br>
SmallString<128> NormalizedPath;<br>
if (LangOpts.MSVCCompat) {<br>
NormalizedPath = Filename.str();<br>
- llvm::sys::fs::normalize_separators(NormalizedPath);<br>
+ llvm::sys::path::native(NormalizedPath);<br>
}<br>
const FileEntry *File = LookupFile(<br>
FilenameLoc, LangOpts.MSVCCompat ? NormalizedPath.c_str() : Filename,<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>