diff options
author | Bill Wendling <isanbard@gmail.com> | 2007-01-24 03:38:47 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2007-01-24 03:38:47 +0000 |
commit | 4905a473e86d0f5d81268486588c1b2d1fe3dbef (patch) | |
tree | 65b45877165619ab66c5335dbe0718cef5a35e1d /llvm/lib/CodeGen/MachOWriter.cpp | |
parent | 0dea65b4778ea5455269dc7836af57fafccd4ad8 (diff) | |
download | bcm5719-llvm-4905a473e86d0f5d81268486588c1b2d1fe3dbef.tar.gz bcm5719-llvm-4905a473e86d0f5d81268486588c1b2d1fe3dbef.zip |
Use the TargetMachOWriterInfo class to get this information.
llvm-svn: 33478
Diffstat (limited to 'llvm/lib/CodeGen/MachOWriter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachOWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |