diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-12 14:16:52 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-12 14:16:52 +0000 |
commit | ec4f0fc7c17cb27c884f0e5e9b15e7e1de1b1883 (patch) | |
tree | 406e1604c4341b0aba970dd8a2c9854ab2fd115e /llvm/lib/Support/Windows | |
parent | 7e79636e1925a24b34f5e5c83822fa1b1e5a961f (diff) | |
download | bcm5719-llvm-ec4f0fc7c17cb27c884f0e5e9b15e7e1de1b1883.tar.gz bcm5719-llvm-ec4f0fc7c17cb27c884f0e5e9b15e7e1de1b1883.zip |
Remove sys::CopyFile.
llvm-svn: 183831
Diffstat (limited to 'llvm/lib/Support/Windows')
-rw-r--r-- | llvm/lib/Support/Windows/Path.inc | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc index f4a2a1b4471..734e6f50d80 100644 --- a/llvm/lib/Support/Windows/Path.inc +++ b/llvm/lib/Support/Windows/Path.inc @@ -21,7 +21,6 @@ #include <malloc.h> // We need to undo a macro defined in Windows.h, otherwise we won't compile: -#undef CopyFile #undef GetCurrentDirectory // Windows happily accepts either forward or backward slashes, though any path @@ -731,16 +730,6 @@ Path::setStatusInfoOnDisk(const FileStatus &si, std::string *ErrMsg) const { } bool -CopyFile(const sys::Path &Dest, const sys::Path &Src, std::string* ErrMsg) { - // Can't use CopyFile macro defined in Windows.h because it would mess up the - // above line. We use the expansion it would have in a non-UNICODE build. - if (!::CopyFileA(Src.c_str(), Dest.c_str(), false)) - return MakeErrMsg(ErrMsg, "Can't copy '" + Src.str() + - "' to '" + Dest.str() + "': "); - return false; -} - -bool Path::makeUnique(bool reuse_current, std::string* ErrMsg) { bool Exists; if (reuse_current && (fs::exists(path, Exists) || !Exists)) |