Add llvm::sys::path::canonical(), which provides the canonicalized
authorDouglas Gregor <dgregor@apple.com>
Wed, 9 Feb 2011 22:11:23 +0000 (22:11 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 9 Feb 2011 22:11:23 +0000 (22:11 +0000)
commit025feadb973272d5c5097bb72cb2f6fef44474d3
tree439433d25e19da46c19b50ef7638090c96526bb8
parenta372d16f92392bb4cd4184783466f0300a51a9ae
Add llvm::sys::path::canonical(), which provides the canonicalized
name of a path, after resolving symbolic links and eliminating excess
path elements such as "foo/../" and "./".

This routine still needs a Windows implementation, but I don't have a
Windows machine available. Help? Please?

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125228 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/PathV2.h
lib/Support/Unix/PathV2.inc