[lld] r234085 - Remove redundant anonymous namespace.
Rui Ueyama
ruiu at google.com
Fri Apr 3 21:10:09 PDT 2015
Author: ruiu
Date: Fri Apr 3 23:10:08 2015
New Revision: 234085
URL: http://llvm.org/viewvc/llvm-project?rev=234085&view=rev
Log:
Remove redundant anonymous namespace.
Modified:
lld/trunk/lib/ReaderWriter/ELF/X86/X86RelocationHandler.cpp
Modified: lld/trunk/lib/ReaderWriter/ELF/X86/X86RelocationHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/X86/X86RelocationHandler.cpp?rev=234085&r1=234084&r2=234085&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/X86/X86RelocationHandler.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/X86/X86RelocationHandler.cpp Fri Apr 3 23:10:08 2015
@@ -15,7 +15,6 @@ using namespace lld;
using namespace lld::elf;
using namespace llvm::support::endian;
-namespace {
/// \brief R_386_32 - word32: S + A
static int reloc32(uint8_t *location, uint64_t P, uint64_t S, uint64_t A) {
int32_t result = (uint32_t)(S + A);
@@ -29,7 +28,6 @@ static int relocPC32(uint8_t *location,
write32le(location, result + read32le(location));
return 0;
}
-}
std::error_code X86TargetRelocationHandler::applyRelocation(
ELFWriter &writer, llvm::FileOutputBuffer &buf, const lld::AtomLayout &atom,
More information about the llvm-commits
mailing list