Frontend: Disentangle removePathTraversal from concatenating paths
authorJustin Bogner <mail@justinbogner.com>
Fri, 20 Jun 2014 03:28:46 +0000 (03:28 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 20 Jun 2014 03:28:46 +0000 (03:28 +0000)
commite1552f664861d9f60c21125f3ca042847c3d1b4a
tree9cc27d998683f9ff394f6c1842ed9dcb1a963089
parent2800a3770d96d59a383cea42019b63043ceff63a
Frontend: Disentangle removePathTraversal from concatenating paths

This reimplements part of r211303 in a bit of a cleaner way. Doing so
allows us to use a proper absolute path when calling addFileMapping
rather than relying on a substring being one, which should fix the
tests on Windows.

llvm-svn: 211338
clang/lib/Frontend/ModuleDependencyCollector.cpp