From: Reid Spencer Date: Thu, 23 Dec 2004 22:14:32 +0000 (+0000) Subject: Put CopyFile in the sys namespace. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=a36c9a4dd3658061951364ee03e2e64735fa2aa2 Put CopyFile in the sys namespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19122 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/System/Win32/Path.cpp b/lib/System/Win32/Path.cpp index 9141ce086f2..c50877afb1a 100644 --- a/lib/System/Win32/Path.cpp +++ b/lib/System/Win32/Path.cpp @@ -573,7 +573,7 @@ bool Path::getMagicNumber(std::string& Magic, unsigned len) const { } void -CopyFile(const sys::Path &Dest, const sys::Path &Src) { +sys::CopyFile(const sys::Path &Dest, const sys::Path &Src) { if (!::CopyFile(Src.c_str(), Dest.c_str(), false)) ThrowError("Can't copy '" + Src.toString() + "' to '" + Dest.toString() + "'"); diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc index 9141ce086f2..c50877afb1a 100644 --- a/lib/System/Win32/Path.inc +++ b/lib/System/Win32/Path.inc @@ -573,7 +573,7 @@ bool Path::getMagicNumber(std::string& Magic, unsigned len) const { } void -CopyFile(const sys::Path &Dest, const sys::Path &Src) { +sys::CopyFile(const sys::Path &Dest, const sys::Path &Src) { if (!::CopyFile(Src.c_str(), Dest.c_str(), false)) ThrowError("Can't copy '" + Src.toString() + "' to '" + Dest.toString() + "'");