mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
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:
parent
7a3c3e9a15
commit
c543b262e1
@ -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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user