Move twice-repeated clang path operation into a new function.
authorDouglas Katzman <dougk@google.com>
Wed, 2 Sep 2015 21:02:10 +0000 (21:02 +0000)
committerDouglas Katzman <dougk@google.com>
Wed, 2 Sep 2015 21:02:10 +0000 (21:02 +0000)
commit3d7575d7e2e8bdb6603f6754dfa86aacf1a4bbf3
tree477656213d46d782afe592939338d2906b43a97a
parent2ab58354ab8addd0de0635cf2979d33dd987e4f5
Move twice-repeated clang path operation into a new function.

And make it more robust in the edge case of exactly "./" as input.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246711 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Path.h
lib/Support/Path.cpp
unittests/Support/Path.cpp