[lld] r268292 - Remove unnecessary namespace specifiers.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon May 2 12:59:56 PDT 2016


Author: ruiu
Date: Mon May  2 14:59:56 2016
New Revision: 268292

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

Modified:
    lld/trunk/ELF/Driver.cpp
    lld/trunk/ELF/DriverUtils.cpp

Modified: lld/trunk/ELF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Driver.cpp?rev=268292&r1=268291&r2=268292&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Mon May  2 14:59:56 2016
@@ -106,9 +106,9 @@ LinkerDriver::getArchiveMembers(MemoryBu
 // Opens and parses a file. Path has to be resolved already.
 // Newly created memory buffers are owned by this driver.
 void LinkerDriver::addFile(StringRef Path) {
-  using namespace llvm::sys::fs;
+  using namespace sys::fs;
   if (Config->Verbose)
-    llvm::outs() << Path << "\n";
+    outs() << Path << "\n";
   if (!Config->Reproduce.empty())
     copyInputFile(Path);
 

Modified: lld/trunk/ELF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/DriverUtils.cpp?rev=268292&r1=268291&r2=268292&view=diff
==============================================================================
--- lld/trunk/ELF/DriverUtils.cpp (original)
+++ lld/trunk/ELF/DriverUtils.cpp Mon May  2 14:59:56 2016
@@ -57,7 +57,7 @@ opt::InputArgList ELFOptTable::parse(Arr
   // Expand response files. '@<filename>' is replaced by the file's contents.
   SmallVector<const char *, 256> Vec(Argv.data(), Argv.data() + Argv.size());
   StringSaver Saver(Alloc);
-  llvm::cl::ExpandResponseFiles(Saver, llvm::cl::TokenizeGNUCommandLine, Vec);
+  cl::ExpandResponseFiles(Saver, cl::TokenizeGNUCommandLine, Vec);
 
   // Parse options and then do error checking.
   opt::InputArgList Args = this->ParseArgs(Vec, MissingIndex, MissingCount);
@@ -148,7 +148,7 @@ static std::string rewritePath(StringRef
 // the same command with the same inputs just by executing
 // "ld.lld @response.txt". Used by --reproduce. This feature is
 // supposed to be used by users to report an issue to LLD developers.
-void elf::createResponseFile(const llvm::opt::InputArgList &Args) {
+void elf::createResponseFile(const opt::InputArgList &Args) {
   // Create the output directory.
   if (std::error_code EC =
           fs::create_directories(Config->Reproduce, /*IgnoreExisting=*/false)) {




More information about the llvm-commits mailing list