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:
Bill Wendling 2007-01-24 03:38:47 +00:00
parent 8f5159e6b2
commit a4b7324fa0

View File

@ -461,8 +461,8 @@ void MachOWriter::EmitHeaderAndLoadCommands() {
OutputBuffer FHOut(FH, is64Bit, isLittleEndian);
FHOut.outword(Header.magic);
FHOut.outword(Header.cputype);
FHOut.outword(Header.cpusubtype);
FHOut.outword(TM.getMachOWriterInfo()->CPUType);
FHOut.outword(TM.getMachOWriterInfo()->CPUSubType);
FHOut.outword(Header.filetype);
FHOut.outword(Header.ncmds);
FHOut.outword(Header.sizeofcmds);