aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Path.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2019-04-18 01:21:10 +0000
committerAdrian Prantl <aprantl@apple.com>2019-04-18 01:21:10 +0000
commit00d97ea2021f8636acec81146ae7ca50d44c8d0a (patch)
tree86eb4051f042eed383c1aad93b4f590912e7952c /llvm/lib/Support/Path.cpp
parentb7bdb8cf33cb8e4a1a940fab823ae7e0ff394e87 (diff)
downloadllvm-00d97ea2021f8636acec81146ae7ca50d44c8d0a.zip
llvm-00d97ea2021f8636acec81146ae7ca50d44c8d0a.tar.gz
llvm-00d97ea2021f8636acec81146ae7ca50d44c8d0a.tar.bz2
Revert Implement sys::fs::copy_file using the macOS copyfile(3) API to support APFS clones.
This reverts r358628 (git commit 91a06bee788262a294527b815354f380d99dfa9b) while investigating a crash reproducer bot failure. llvm-svn: 358634
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r--llvm/lib/Support/Path.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp
index 9466591..902df74 100644
--- a/llvm/lib/Support/Path.cpp
+++ b/llvm/lib/Support/Path.cpp
@@ -935,7 +935,6 @@ std::error_code create_directories(const Twine &Path, bool IgnoreExisting,
return create_directory(P, IgnoreExisting, Perms);
}
-#ifndef __APPLE__
static std::error_code copy_file_internal(int ReadFD, int WriteFD) {
const size_t BufSize = 4096;
char *Buf = new char[BufSize];
@@ -989,7 +988,6 @@ std::error_code copy_file(const Twine &From, int ToFD) {
return EC;
}
-#endif
ErrorOr<MD5::MD5Result> md5_contents(int FD) {
MD5 Hash;