[cfe-commits] r157889 - /cfe/trunk/lib/Tooling/Tooling.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Sat Jun 2 08:34:22 PDT 2012
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() {
More information about the cfe-commits
mailing list