Remove unnecessary namespace specifiers.
authorRui Ueyama <ruiu@google.com>
Mon, 2 May 2016 19:59:56 +0000 (19:59 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 2 May 2016 19:59:56 +0000 (19:59 +0000)
llvm-svn: 268292

lld/ELF/Driver.cpp
lld/ELF/DriverUtils.cpp

index b8882c2..9f4a1ca 100644 (file)
@@ -106,9 +106,9 @@ LinkerDriver::getArchiveMembers(MemoryBufferRef MB) {
 // 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);
 
index 69d5dba..4380a83 100644 (file)
@@ -57,7 +57,7 @@ opt::InputArgList ELFOptTable::parse(ArrayRef<const char *> Argv) {
   // 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 S) {
 // 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)) {