Teach Path::GetCurrentDirectory to use $PWD, to support users who like to do
authorNick Lewycky <nicholas@mxc.ca>
Fri, 29 Jul 2011 04:42:39 +0000 (04:42 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 29 Jul 2011 04:42:39 +0000 (04:42 +0000)
commit3c036e520e1fb19f2dd4fdcbc7e6881984dc72f9
treeba0fc704c9389320604b59eace676545e80278ba
parent3bbb6f79b718e5d972ac3e1c949f3139419b4603
Teach Path::GetCurrentDirectory to use $PWD, to support users who like to do
screwy things by setting PWD != getcwd(). For example, some developers I know
will use this to control the value in gcc's DW_AT_comp_dir value in debug
output. With this patch, that trick will now work on clang too.

The only other effect of this change is that the static analysis will now
respect $PWD when reporting the directory of the files in its HTML output. I
think that's fine.

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