[lld] r239234 - Remove redundant `using namespace`.

Rui Ueyama ruiu at google.com
Sat Jun 6 16:11:39 PDT 2015


Author: ruiu
Date: Sat Jun  6 18:11:39 2015
New Revision: 239234

URL: http://llvm.org/viewvc/llvm-project?rev=239234&view=rev
Log:
Remove redundant `using namespace`.

Modified:
    lld/trunk/COFF/Chunks.cpp

Modified: lld/trunk/COFF/Chunks.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Chunks.cpp?rev=239234&r1=239233&r2=239234&view=diff
==============================================================================
--- lld/trunk/COFF/Chunks.cpp (original)
+++ lld/trunk/COFF/Chunks.cpp Sat Jun  6 18:11:39 2015
@@ -97,7 +97,6 @@ static void add64(uint8_t *P, int64_t V)
 
 // Implements x64 PE/COFF relocations.
 void SectionChunk::applyReloc(uint8_t *Buf, const coff_relocation *Rel) {
-  using namespace llvm::COFF;
   uint8_t *Off = Buf + FileOff + Rel->VirtualAddress;
   SymbolBody *Body = File->getSymbolBody(Rel->SymbolTableIndex);
   uint64_t S = cast<Defined>(Body)->getRVA();
@@ -156,7 +155,6 @@ SectionRef SectionChunk::getSectionRef()
 }
 
 uint32_t CommonChunk::getPermissions() const {
-  using namespace llvm::COFF;
   return IMAGE_SCN_CNT_UNINITIALIZED_DATA | IMAGE_SCN_MEM_READ |
          IMAGE_SCN_MEM_WRITE;
 }





More information about the llvm-commits mailing list