mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
Use the TargetMachOWriterInfo class to get this information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33478 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8f5159e6b2
commit
a4b7324fa0
@ -461,8 +461,8 @@ void MachOWriter::EmitHeaderAndLoadCommands() {
|
|||||||
OutputBuffer FHOut(FH, is64Bit, isLittleEndian);
|
OutputBuffer FHOut(FH, is64Bit, isLittleEndian);
|
||||||
|
|
||||||
FHOut.outword(Header.magic);
|
FHOut.outword(Header.magic);
|
||||||
FHOut.outword(Header.cputype);
|
FHOut.outword(TM.getMachOWriterInfo()->CPUType);
|
||||||
FHOut.outword(Header.cpusubtype);
|
FHOut.outword(TM.getMachOWriterInfo()->CPUSubType);
|
||||||
FHOut.outword(Header.filetype);
|
FHOut.outword(Header.filetype);
|
||||||
FHOut.outword(Header.ncmds);
|
FHOut.outword(Header.ncmds);
|
||||||
FHOut.outword(Header.sizeofcmds);
|
FHOut.outword(Header.sizeofcmds);
|
||||||
|
Loading…
Reference in New Issue
Block a user