Was there a test already breaking here? Cheers, /Manuel
On Sat, Jun 2, 2012 at 5:34 PM, NAKAMURA Takumi <[email protected]>wrote: > Author: chapuni > Date: Sat Jun 2 10:34:21 2012 > New Revision: 157889 > > URL: http://llvm.org/viewvc/llvm-project?rev=157889&view=rev > Log: > ToolInvocation::mapVirtualFile(): Tweak for Win32. Handle the key as > native path. > > Modified: > cfe/trunk/lib/Tooling/Tooling.cpp > > Modified: cfe/trunk/lib/Tooling/Tooling.cpp > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/Tooling.cpp?rev=157889&r1=157888&r2=157889&view=diff > > ============================================================================== > --- cfe/trunk/lib/Tooling/Tooling.cpp (original) > +++ cfe/trunk/lib/Tooling/Tooling.cpp Sat Jun 2 10:34:21 2012 > @@ -166,7 +166,9 @@ > } > > void ToolInvocation::mapVirtualFile(StringRef FilePath, StringRef > Content) { > - MappedFileContents[FilePath] = Content; > + SmallString<1024> PathStorage; > + llvm::sys::path::native(FilePath, PathStorage); > + MappedFileContents[PathStorage] = Content; > } > > bool ToolInvocation::run() { > > > _______________________________________________ > 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
