Frontend: Canonicalize to native paths when dumping module dependencies
authorJustin Bogner <mail@justinbogner.com>
Fri, 12 Dec 2014 23:12:27 +0000 (23:12 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 12 Dec 2014 23:12:27 +0000 (23:12 +0000)
commit93e3cfcf9906b8eac682844af2d040a4f086b711
tree7cb18d2b8eee4d0b4d946ec509fa667cc2ccc1a6
parentbfd53cd2afc8533c9d21fb328574155b496ced2f
Frontend: Canonicalize to native paths when dumping module dependencies

Mixed path separators (ie, both / and \\) can mess up the sort order
of the VFS map when dumping module dependencies, as was recently
exposed by r224055 and papered over in r224145. Instead, we should
simply use native paths for consistency.

This also adds a TODO to add handling of .. in paths. There was some
code for this before r224055, but it was untested and probably broken.

llvm-svn: 224164
clang/lib/Frontend/ModuleDependencyCollector.cpp
clang/test/Modules/dependency-dump.m