[lld] r268278 - Remove unnecessary namespace specifiers.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon May 2 11:51:08 PDT 2016


Author: ruiu
Date: Mon May  2 13:51:08 2016
New Revision: 268278

URL: http://llvm.org/viewvc/llvm-project?rev=268278&view=rev
Log:
Remove unnecessary namespace specifiers.

Modified:
    lld/trunk/ELF/DriverUtils.cpp

Modified: lld/trunk/ELF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/DriverUtils.cpp?rev=268278&r1=268277&r2=268278&view=diff
==============================================================================
--- lld/trunk/ELF/DriverUtils.cpp (original)
+++ lld/trunk/ELF/DriverUtils.cpp Mon May  2 13:51:08 2016
@@ -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
 // 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:
   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:
 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
 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();
 }




More information about the llvm-commits mailing list