Namespace cleanup (no functional change)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213478 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Artyom Skrobov 2014-07-20 12:08:28 +00:00
parent 7a3c3e9a15
commit c543b262e1

View File

@ -27,17 +27,15 @@
using namespace llvm; using namespace llvm;
using namespace object; using namespace object;
namespace llvm { namespace {
struct section_base {
namespace object { char sectname[16];
char segname[16];
struct section_base { };
char sectname[16]; }
char segname[16];
};
template<typename T> template<typename T>
T getStruct(const MachOObjectFile *O, const char *P) { static T getStruct(const MachOObjectFile *O, const char *P) {
T Cmd; T Cmd;
memcpy(&Cmd, P, sizeof(T)); memcpy(&Cmd, P, sizeof(T));
if (O->isLittleEndian() != sys::IsLittleEndianHost) if (O->isLittleEndian() != sys::IsLittleEndianHost)
@ -1745,5 +1743,3 @@ ObjectFile::createMachOObjectFile(std::unique_ptr<MemoryBuffer> &Buffer) {
return Ret.release(); return Ret.release();
} }
} // end namespace object
} // end namespace llvm