diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-06-02 15:34:21 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-06-02 15:34:21 +0000 |
commit | 4de31654bb5758f6092015038a01c58b451470fa (patch) | |
tree | 33c85eeb9227eefe2285c027f5cfd915cc676385 /clang/lib | |
parent | 590ad8f515f5a3ea8af9878d2c0c857eb9d0147a (diff) | |
download | bcm5719-llvm-4de31654bb5758f6092015038a01c58b451470fa.tar.gz bcm5719-llvm-4de31654bb5758f6092015038a01c58b451470fa.zip |
ToolInvocation::mapVirtualFile(): Tweak for Win32. Handle the key as native path.
llvm-svn: 157889
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Tooling/Tooling.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Tooling/Tooling.cpp b/clang/lib/Tooling/Tooling.cpp index 50612cb9824..0c9fa436065 100644 --- a/clang/lib/Tooling/Tooling.cpp +++ b/clang/lib/Tooling/Tooling.cpp @@ -166,7 +166,9 @@ ToolInvocation::ToolInvocation( } 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() { |