[Support] remove_dots: Remove .. from absolute paths.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 17 Oct 2016 13:28:21 +0000 (13:28 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 17 Oct 2016 13:28:21 +0000 (13:28 +0000)
commit937dd7af2d262af1e3deaddd11906484d7ad8b76
tree07052d294842830e0ebe484d71ae183cae3ddb9a
parentcdcd403bc2223e6ed71323fe2b36030e9a7bc674
[Support] remove_dots: Remove .. from absolute paths.

/../foo is still a proper path after removing the dotdot. This should
now finally match https://9p.io/sys/doc/lexnames.html [Cleaning names].

llvm-svn: 284384
llvm/lib/Support/Path.cpp
llvm/unittests/Support/Path.cpp