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