OSDN Git Service

Cleanup the interface for creating soft or hard links.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 11 Mar 2014 18:40:24 +0000 (18:40 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 11 Mar 2014 18:40:24 +0000 (18:40 +0000)
commit8acff70de1d0860b13a4fe9517c286246ad17528
tree456df0609cf47f86ea4d68df12eb27f11d69371d
parent7e3e9aa8e1eb2f138a6e3a6a9d582c3eb6b08810
Cleanup the interface for creating soft or hard links.

Before this patch the unix code for creating hardlinks was unused. The code
for creating symbolic links was implemented in lib/Support/LockFileManager.cpp
and the code for creating hard links in lib/Support/*/Path.inc.

The only use we have for these is in LockFileManager.cpp and it can use both
soft and hard links. Just have a create_link function that creates one or the
other depending on the platform.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203596 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/FileSystem.h
lib/Support/LockFileManager.cpp
lib/Support/Unix/Path.inc
lib/Support/Windows/Path.inc
unittests/Support/Path.cpp