Was there a test already breaking here?<br><div><br></div><div>Cheers,</div><div>/Manuel<br><br><div class="gmail_quote">On Sat, Jun 2, 2012 at 5:34 PM, NAKAMURA Takumi <span dir="ltr"><<a href="mailto:geek4civic@gmail.com" target="_blank">geek4civic@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: chapuni<br>
Date: Sat Jun 2 10:34:21 2012<br>
New Revision: 157889<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=157889&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=157889&view=rev</a><br>
Log:<br>
ToolInvocation::mapVirtualFile(): Tweak for Win32. Handle the key as native path.<br>
<br>
Modified:<br>
cfe/trunk/lib/Tooling/Tooling.cpp<br>
<br>
Modified: cfe/trunk/lib/Tooling/Tooling.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/Tooling.cpp?rev=157889&r1=157888&r2=157889&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/Tooling.cpp?rev=157889&r1=157888&r2=157889&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/lib/Tooling/Tooling.cpp (original)<br>
+++ cfe/trunk/lib/Tooling/Tooling.cpp Sat Jun 2 10:34:21 2012<br>
@@ -166,7 +166,9 @@<br>
}<br>
<br>
void ToolInvocation::mapVirtualFile(StringRef FilePath, StringRef Content) {<br>
- MappedFileContents[FilePath] = Content;<br>
+ SmallString<1024> PathStorage;<br>
+ llvm::sys::path::native(FilePath, PathStorage);<br>
+ MappedFileContents[PathStorage] = Content;<br>
}<br>
<br>
bool ToolInvocation::run() {<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>