mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Revert "Fix the build broken by r189315." and "Move everything depending on Object/MachOFormat.h over to Support/MachO.h."
This reverts commits r189319 and r189315. r189315 broke some tests on what I believe are big-endian platforms. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189321 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -537,10 +537,10 @@ uint64_t MCMachOObjectDisassembler::getEntrypoint() {
|
||||
|
||||
// Look for LC_MAIN.
|
||||
{
|
||||
uint32_t LoadCommandCount = MOOF.getHeader().ncmds;
|
||||
uint32_t LoadCommandCount = MOOF.getHeader().NumLoadCommands;
|
||||
MachOObjectFile::LoadCommandInfo Load = MOOF.getFirstLoadCommandInfo();
|
||||
for (unsigned I = 0;; ++I) {
|
||||
if (Load.C.cmd == MachO::LC_MAIN) {
|
||||
if (Load.C.Type == MachO::LC_MAIN) {
|
||||
EntryFileOffset =
|
||||
((const MachO::entry_point_command *)Load.Ptr)->entryoff;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user