aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/MachOWriter.cpp
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
commita4b7324fa0c77e50863a0e5ccd43285b64c2f1bf (patch)
treeb7cfe2dadf19db763381bc0e72d41a0623499b4d /lib/CodeGen/MachOWriter.cpp
parent8f5159e6b225356bd9c07c7040bab002b8707c0a (diff)
downloadexternal_llvm-a4b7324fa0c77e50863a0e5ccd43285b64c2f1bf.zip
external_llvm-a4b7324fa0c77e50863a0e5ccd43285b64c2f1bf.tar.gz
external_llvm-a4b7324fa0c77e50863a0e5ccd43285b64c2f1bf.tar.bz2
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
Diffstat (limited to 'lib/CodeGen/MachOWriter.cpp')
-rw-r--r--lib/CodeGen/MachOWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/MachOWriter.cpp b/lib/CodeGen/MachOWriter.cpp
index 82dcf18..70fe79b 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);