[cfe-commits] r157889 - /cfe/trunk/lib/Tooling/Tooling.cpp
Manuel Klimek
klimek at google.com
Tue Jun 5 23:31:51 PDT 2012
Was there a test already breaking here?
Cheers,
/Manuel
On Sat, Jun 2, 2012 at 5:34 PM, NAKAMURA Takumi <geek4civic at gmail.com>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
> 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/20120606/dcb6300d/attachment.html>
More information about the cfe-commits
mailing list