aboutsummaryrefslogtreecommitdiff
path: root/libcxx/src/filesystem/operations.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2023-06-05 12:27:38 -0700
committerLouis Dionne <ldionne.2@gmail.com>2023-06-26 09:35:26 -0400
commit21853b9645552febc42d69451462258df9aaf298 (patch)
treecc755d4fe76dd55c4848f3b117bdbbece8f89091 /libcxx/src/filesystem/operations.cpp
parente800967eb1105177f561732814297bfecfaf63c2 (diff)
downloadllvm-21853b9645552febc42d69451462258df9aaf298.zip
llvm-21853b9645552febc42d69451462258df9aaf298.tar.gz
llvm-21853b9645552febc42d69451462258df9aaf298.tar.bz2
[libc++][filesystem] Avoid using anonymous namespaces in support headers
This avoids using anonymous namespaces in headers and ensures that the various helper functions get deduplicated across the TUs implementing <filesystem>. Otherwise, we'd get a definition of these helper functions in each TU where they are used, which is entirely unnecessary. Differential Revision: https://reviews.llvm.org/D152378
Diffstat (limited to 'libcxx/src/filesystem/operations.cpp')
-rw-r--r--libcxx/src/filesystem/operations.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/filesystem/operations.cpp b/libcxx/src/filesystem/operations.cpp
index f6c3ff1..9717833 100644
--- a/libcxx/src/filesystem/operations.cpp
+++ b/libcxx/src/filesystem/operations.cpp
@@ -350,7 +350,7 @@ bool __copy_file(const path& from, const path& to, copy_options options,
return err.report(m_ec);
}
- if (!copy_file_impl(from_fd, to_fd, m_ec)) {
+ if (!detail::copy_file_impl(from_fd, to_fd, m_ec)) {
// FIXME: Remove the dest file if we failed, and it didn't exist previously.
return err.report(m_ec);
}