From 4905a473e86d0f5d81268486588c1b2d1fe3dbef Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 24 Jan 2007 03:38:47 +0000 Subject: Use the TargetMachOWriterInfo class to get this information. llvm-svn: 33478 --- llvm/lib/CodeGen/MachOWriter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/MachOWriter.cpp b/llvm/lib/CodeGen/MachOWriter.cpp index 82dcf1861b8..70fe79bf687 100644 --- a/llvm/lib/CodeGen/MachOWriter.cpp +++ b/llvm/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); -- cgit v1.2.3