[lld] r275694 - Remove redundant namespace specifiers.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 16 11:55:47 PDT 2016


Author: ruiu
Date: Sat Jul 16 13:55:47 2016
New Revision: 275694

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

Modified:
    lld/trunk/ELF/DriverUtils.cpp
    lld/trunk/ELF/InputFiles.cpp
    lld/trunk/ELF/LTO.cpp
    lld/trunk/ELF/OutputSections.cpp
    lld/trunk/ELF/SymbolTable.cpp
    lld/trunk/ELF/Writer.cpp

Modified: lld/trunk/ELF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/DriverUtils.cpp?rev=275694&r1=275693&r2=275694&view=diff
==============================================================================
--- lld/trunk/ELF/DriverUtils.cpp (original)
+++ lld/trunk/ELF/DriverUtils.cpp Sat Jul 16 13:55:47 2016
@@ -128,13 +128,13 @@ std::string elf::relativeToRoot(StringRe
   return Res.str();
 }
 
-CpioFile::CpioFile(std::unique_ptr<llvm::raw_fd_ostream> OS, StringRef S)
+CpioFile::CpioFile(std::unique_ptr<raw_fd_ostream> OS, StringRef S)
     : OS(std::move(OS)), Basename(S) {}
 
 CpioFile *CpioFile::create(StringRef OutputPath) {
   std::string Path = (OutputPath + ".cpio").str();
   std::error_code EC;
-  auto OS = llvm::make_unique<raw_fd_ostream>(Path, EC, fs::F_None);
+  auto OS = make_unique<raw_fd_ostream>(Path, EC, fs::F_None);
   if (EC) {
     error(EC, "--reproduce: failed to open " + Path);
     return nullptr;

Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=275694&r1=275693&r2=275694&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Sat Jul 16 13:55:47 2016
@@ -807,10 +807,10 @@ template void ArchiveFile::parse<ELF32BE
 template void ArchiveFile::parse<ELF64LE>();
 template void ArchiveFile::parse<ELF64BE>();
 
-template void BitcodeFile::parse<ELF32LE>(llvm::DenseSet<StringRef> &);
-template void BitcodeFile::parse<ELF32BE>(llvm::DenseSet<StringRef> &);
-template void BitcodeFile::parse<ELF64LE>(llvm::DenseSet<StringRef> &);
-template void BitcodeFile::parse<ELF64BE>(llvm::DenseSet<StringRef> &);
+template void BitcodeFile::parse<ELF32LE>(DenseSet<StringRef> &);
+template void BitcodeFile::parse<ELF32BE>(DenseSet<StringRef> &);
+template void BitcodeFile::parse<ELF64LE>(DenseSet<StringRef> &);
+template void BitcodeFile::parse<ELF64BE>(DenseSet<StringRef> &);
 
 template void LazyObjectFile::parse<ELF32LE>();
 template void LazyObjectFile::parse<ELF32BE>();

Modified: lld/trunk/ELF/LTO.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LTO.cpp?rev=275694&r1=275693&r2=275694&view=diff
==============================================================================
--- lld/trunk/ELF/LTO.cpp (original)
+++ lld/trunk/ELF/LTO.cpp Sat Jul 16 13:55:47 2016
@@ -144,7 +144,7 @@ static bool shouldInternalize(const Smal
 }
 
 BitcodeCompiler::BitcodeCompiler()
-    : Combined(new llvm::Module("ld-temp.o", Driver->Context)) {}
+    : Combined(new Module("ld-temp.o", Driver->Context)) {}
 
 static void undefine(Symbol *S) {
   replaceBody<Undefined>(S, S->body()->getName(), STV_DEFAULT, S->body()->Type);
@@ -224,10 +224,10 @@ void BitcodeCompiler::add(BitcodeFile &F
     switch (GV->getLinkage()) {
     default:
       break;
-    case llvm::GlobalValue::LinkOnceAnyLinkage:
+    case GlobalValue::LinkOnceAnyLinkage:
       GV->setLinkage(GlobalValue::WeakAnyLinkage);
       break;
-    case llvm::GlobalValue::LinkOnceODRLinkage:
+    case GlobalValue::LinkOnceODRLinkage:
       GV->setLinkage(GlobalValue::WeakODRLinkage);
       break;
     }
@@ -238,7 +238,7 @@ void BitcodeCompiler::add(BitcodeFile &F
   IRMover Mover(*Combined);
   if (Error E = Mover.move(Obj->takeModule(), Keep,
                            [](GlobalValue &, IRMover::ValueAdder) {})) {
-    handleAllErrors(std::move(E), [&](const llvm::ErrorInfoBase &EIB) {
+    handleAllErrors(std::move(E), [&](const ErrorInfoBase &EIB) {
       fatal("failed to link module " + F.getName() + ": " + EIB.message());
     });
   }

Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=275694&r1=275693&r2=275694&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Sat Jul 16 13:55:47 2016
@@ -1185,7 +1185,7 @@ template <class ELFT>
 MergeOutputSection<ELFT>::MergeOutputSection(StringRef Name, uint32_t Type,
                                              uintX_t Flags, uintX_t Alignment)
     : OutputSectionBase<ELFT>(Name, Type, Flags),
-      Builder(llvm::StringTableBuilder::RAW, Alignment) {}
+      Builder(StringTableBuilder::RAW, Alignment) {}
 
 template <class ELFT> void MergeOutputSection<ELFT>::writeTo(uint8_t *Buf) {
   if (shouldTailMerge()) {
@@ -1666,7 +1666,7 @@ void BuildIdFnv1<ELFT>::writeBuildId(Arr
 
 template <class ELFT>
 void BuildIdMd5<ELFT>::writeBuildId(ArrayRef<ArrayRef<uint8_t>> Bufs) {
-  llvm::MD5 Hash;
+  MD5 Hash;
   for (ArrayRef<uint8_t> Buf : Bufs)
     Hash.update(Buf);
   MD5::MD5Result Res;
@@ -1676,7 +1676,7 @@ void BuildIdMd5<ELFT>::writeBuildId(Arra
 
 template <class ELFT>
 void BuildIdSha1<ELFT>::writeBuildId(ArrayRef<ArrayRef<uint8_t>> Bufs) {
-  llvm::SHA1 Hash;
+  SHA1 Hash;
   for (ArrayRef<uint8_t> Buf : Bufs)
     Hash.update(Buf);
   memcpy(this->HashBuf, Hash.final().data(), 20);

Modified: lld/trunk/ELF/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolTable.cpp?rev=275694&r1=275693&r2=275694&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.cpp (original)
+++ lld/trunk/ELF/SymbolTable.cpp Sat Jul 16 13:55:47 2016
@@ -69,7 +69,7 @@ void SymbolTable<ELFT>::addFile(std::uni
   }
 
   if (Config->Trace)
-    llvm::outs() << getFilename(FileP) << "\n";
+    outs() << getFilename(FileP) << "\n";
 
   // .so file
   if (auto *F = dyn_cast<SharedFile<ELFT>>(FileP)) {
@@ -117,7 +117,7 @@ template <class ELFT> void SymbolTable<E
   for (auto &IF : IFs) {
     ObjectFile<ELFT> *Obj = cast<ObjectFile<ELFT>>(IF.release());
 
-    llvm::DenseSet<StringRef> DummyGroups;
+    DenseSet<StringRef> DummyGroups;
     Obj->parse(DummyGroups);
     ObjectFiles.emplace_back(Obj);
   }
@@ -481,8 +481,8 @@ std::vector<SymbolBody *> SymbolTable<EL
 }
 
 template <class ELFT>
-void SymbolTable<ELFT>::addLazyArchive(
-    ArchiveFile *F, const llvm::object::Archive::Symbol Sym) {
+void SymbolTable<ELFT>::addLazyArchive(ArchiveFile *F,
+                                       const object::Archive::Symbol Sym) {
   Symbol *S;
   bool WasInserted;
   std::tie(S, WasInserted) = insert(Sym.getName());

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=275694&r1=275693&r2=275694&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Sat Jul 16 13:55:47 2016
@@ -83,7 +83,7 @@ private:
 
   void addCommonSymbols(std::vector<DefinedCommon *> &Syms);
 
-  std::unique_ptr<llvm::FileOutputBuffer> Buffer;
+  std::unique_ptr<FileOutputBuffer> Buffer;
 
   BumpPtrAllocator Alloc;
   std::vector<OutputSectionBase<ELFT> *> OutputSections;




More information about the llvm-commits mailing list