summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-01-24 03:38:47 +0000
committerBill Wendling <isanbard@gmail.com>2007-01-24 03:38:47 +0000
commit4905a473e86d0f5d81268486588c1b2d1fe3dbef (patch)
tree65b45877165619ab66c5335dbe0718cef5a35e1d /llvm/lib/CodeGen
parent0dea65b4778ea5455269dc7836af57fafccd4ad8 (diff)
downloadbcm5719-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')
-rw-r--r--llvm/lib/CodeGen/MachOWriter.cpp4
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);
OpenPOWER on IntegriCloud