diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-18 03:29:51 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-18 03:29:51 +0000 |
| commit | 213c4cb18ceca3c8c0146e557775cdb4fab2ed5e (patch) | |
| tree | 308732ada39a362e96b27fb69b014eb9b403112f /llvm/lib/Support/Windows/Path.inc | |
| parent | 4d10587ff37308969ea607b1dd2793383f3d17f7 (diff) | |
| download | bcm5719-llvm-213c4cb18ceca3c8c0146e557775cdb4fab2ed5e.tar.gz bcm5719-llvm-213c4cb18ceca3c8c0146e557775cdb4fab2ed5e.zip | |
Remove dead code.
llvm-svn: 186561
Diffstat (limited to 'llvm/lib/Support/Windows/Path.inc')
| -rw-r--r-- | llvm/lib/Support/Windows/Path.inc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc index 2b043182747..0eb0759d743 100644 --- a/llvm/lib/Support/Windows/Path.inc +++ b/llvm/lib/Support/Windows/Path.inc @@ -324,29 +324,6 @@ retry_cur_dir: return error_code::success(); } -error_code copy_file(const Twine &from, const Twine &to, copy_option copt) { - // Get arguments. - SmallString<128> from_storage; - SmallString<128> to_storage; - StringRef f = from.toStringRef(from_storage); - StringRef t = to.toStringRef(to_storage); - - // Convert to utf-16. - SmallVector<wchar_t, 128> wide_from; - SmallVector<wchar_t, 128> wide_to; - if (error_code ec = UTF8ToUTF16(f, wide_from)) return ec; - if (error_code ec = UTF8ToUTF16(t, wide_to)) return ec; - - // Copy the file. - BOOL res = ::CopyFileW(wide_from.begin(), wide_to.begin(), - copt != copy_option::overwrite_if_exists); - - if (res == 0) - return windows_error(::GetLastError()); - - return error_code::success(); -} - error_code create_directory(const Twine &path, bool &existed) { SmallString<128> path_storage; SmallVector<wchar_t, 128> path_utf16; |

