[llvm-commits] CVS: llvm/lib/CodeGen/MachOWriter.cpp

Bill Wendling isanbard at gmail.com
Tue Jan 23 19:39:03 PST 2007



Changes in directory llvm/lib/CodeGen:

MachOWriter.cpp updated: 1.17 -> 1.18
---
Log message:

Use the TargetMachOWriterInfo class to get this information.


---
Diffs of the changes:  (+2 -2)

 MachOWriter.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/CodeGen/MachOWriter.cpp
diff -u llvm/lib/CodeGen/MachOWriter.cpp:1.17 llvm/lib/CodeGen/MachOWriter.cpp:1.18
--- llvm/lib/CodeGen/MachOWriter.cpp:1.17	Sat Jan 20 16:35:55 2007
+++ llvm/lib/CodeGen/MachOWriter.cpp	Tue Jan 23 21:38:47 2007
@@ -461,8 +461,8 @@
   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);






More information about the llvm-commits mailing list