mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Support/MachO: Add a bunch of defines.
Right now we have two headers for the Mach-O format. I'd like to get rid of one. Since the other object formats are all in Support, I chose to keep the Mach-O header in Support, and discard the other one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189314 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -540,7 +540,7 @@ uint64_t MCMachOObjectDisassembler::getEntrypoint() {
|
||||
uint32_t LoadCommandCount = MOOF.getHeader().NumLoadCommands;
|
||||
MachOObjectFile::LoadCommandInfo Load = MOOF.getFirstLoadCommandInfo();
|
||||
for (unsigned I = 0;; ++I) {
|
||||
if (Load.C.Type == MachO::LoadCommandMain) {
|
||||
if (Load.C.Type == MachO::LC_MAIN) {
|
||||
EntryFileOffset =
|
||||
((const MachO::entry_point_command *)Load.Ptr)->entryoff;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user