From: Bill Wendling Date: Wed, 24 Jan 2007 03:38:47 +0000 (+0000) Subject: Use the TargetMachOWriterInfo class to get this information. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a4b7324fa0c77e50863a0e5ccd43285b64c2f1bf;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/MachOWriter.cpp b/lib/CodeGen/MachOWriter.cpp index 82dcf1861b8..70fe79bf687 100644 --- a/lib/CodeGen/MachOWriter.cpp +++ b/lib/CodeGen/MachOWriter.cpp @@ -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);