diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-07 01:22:31 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-07 01:22:31 +0000 |
commit | 1522fce477f3b6b1b5812aa561ad2ff3f51eb968 (patch) | |
tree | 7091ae78128def7a19269ea17f9f9632ab220d45 /lib/Support/Windows | |
parent | 3890e397c3fa6cc11f50ea5e32ca81afa1e653a5 (diff) | |
download | external_llvm-1522fce477f3b6b1b5812aa561ad2ff3f51eb968.zip external_llvm-1522fce477f3b6b1b5812aa561ad2ff3f51eb968.tar.gz external_llvm-1522fce477f3b6b1b5812aa561ad2ff3f51eb968.tar.bz2 |
Support/PathV2: Move current_path from path to fs and fix the Unix implementation.
Unix bug spotted by Dan Gohman.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121090 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows')
-rw-r--r-- | lib/Support/Windows/PathV2.inc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Support/Windows/PathV2.inc b/lib/Support/Windows/PathV2.inc index c724607..ff90515 100644 --- a/lib/Support/Windows/PathV2.inc +++ b/lib/Support/Windows/PathV2.inc @@ -134,7 +134,7 @@ namespace { namespace llvm { namespace sys { -namespace path { +namespace fs { error_code current_path(SmallVectorImpl<char> &result) { SmallVector<wchar_t, 128> cur_path; @@ -180,10 +180,6 @@ retry_cur_dir: return success; } -} // end namespace path - -namespace fs { - error_code copy_file(const Twine &from, const Twine &to, copy_option copt) { // Get arguments. SmallString<128> from_storage; |