From fc28827216197d7b8ca6dc0968faf6a7a53966d8 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Mon, 2 May 2016 18:51:08 +0000 Subject: [PATCH] Remove unnecessary namespace specifiers. llvm-svn: 268278 --- lld/ELF/DriverUtils.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lld/ELF/DriverUtils.cpp b/lld/ELF/DriverUtils.cpp index 763dda5..69d5dba 100644 --- a/lld/ELF/DriverUtils.cpp +++ b/lld/ELF/DriverUtils.cpp @@ -122,11 +122,11 @@ void elf::copyInputFile(StringRef Src) { std::string Dest = getDestPath(Src); SmallString<128> Dir(Dest); path::remove_filename(Dir); - if (std::error_code EC = sys::fs::create_directories(Dir)) { + if (std::error_code EC = fs::create_directories(Dir)) { error(EC, Dir + ": can't create directory"); return; } - if (std::error_code EC = sys::fs::copy_file(Src, Dest)) + if (std::error_code EC = fs::copy_file(Src, Dest)) error(EC, "failed to copy file: " + Dest); } @@ -150,8 +150,8 @@ static std::string rewritePath(StringRef S) { // supposed to be used by users to report an issue to LLD developers. void elf::createResponseFile(const llvm::opt::InputArgList &Args) { // Create the output directory. - if (std::error_code EC = sys::fs::create_directories( - Config->Reproduce, /*IgnoreExisting=*/false)) { + if (std::error_code EC = + fs::create_directories(Config->Reproduce, /*IgnoreExisting=*/false)) { error(EC, Config->Reproduce + ": can't create directory"); return; } @@ -160,7 +160,7 @@ void elf::createResponseFile(const llvm::opt::InputArgList &Args) { SmallString<128> Path; path::append(Path, Config->Reproduce, "response.txt"); std::error_code EC; - raw_fd_ostream OS(Path, EC, sys::fs::OpenFlags::F_None); + raw_fd_ostream OS(Path, EC, fs::OpenFlags::F_None); check(EC); // Copy the command line to response.txt while rewriting paths. @@ -191,7 +191,7 @@ void elf::createResponseFile(const llvm::opt::InputArgList &Args) { std::string elf::findFromSearchPaths(StringRef Path) { for (StringRef Dir : Config->SearchPaths) { std::string FullPath = buildSysrootedPath(Dir, Path); - if (sys::fs::exists(FullPath)) + if (fs::exists(FullPath)) return FullPath; } return ""; @@ -216,8 +216,8 @@ std::string elf::searchLibrary(StringRef Path) { std::string elf::buildSysrootedPath(StringRef Dir, StringRef File) { SmallString<128> Path; if (Dir.startswith("=")) - sys::path::append(Path, Config->Sysroot, Dir.substr(1), File); + path::append(Path, Config->Sysroot, Dir.substr(1), File); else - sys::path::append(Path, Dir, File); + path::append(Path, Dir, File); return Path.str(); } -- 2.7.4