[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCMachOWriter.cpp
Chris Lattner
sabre at nondot.org
Sat Dec 16 12:23:59 PST 2006
Changes in directory llvm/lib/Target/PowerPC:
PPCMachOWriter.cpp updated: 1.8 -> 1.9
---
Log message:
Apply B. Scott Michel's patch for PR1054: http://llvm.org/PR1054 , thanks!
---
Diffs of the changes: (+3 -3)
PPCMachOWriter.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/PowerPC/PPCMachOWriter.cpp
diff -u llvm/lib/Target/PowerPC/PPCMachOWriter.cpp:1.8 llvm/lib/Target/PowerPC/PPCMachOWriter.cpp:1.9
--- llvm/lib/Target/PowerPC/PPCMachOWriter.cpp:1.8 Sun Dec 10 20:20:45 2006
+++ llvm/lib/Target/PowerPC/PPCMachOWriter.cpp Sat Dec 16 14:23:42 2006
@@ -24,11 +24,11 @@
public:
PPCMachOWriter(std::ostream &O, PPCTargetMachine &TM) : MachOWriter(O, TM) {
if (TM.getTargetData()->getPointerSizeInBits() == 64) {
- Header.cputype = MachOHeader::CPU_TYPE_POWERPC64;
+ Header.cputype = MachOHeader::HDR_CPU_TYPE_POWERPC64;
} else {
- Header.cputype = MachOHeader::CPU_TYPE_POWERPC;
+ Header.cputype = MachOHeader::HDR_CPU_TYPE_POWERPC;
}
- Header.cpusubtype = MachOHeader::CPU_SUBTYPE_POWERPC_ALL;
+ Header.cpusubtype = MachOHeader::HDR_CPU_SUBTYPE_POWERPC_ALL;
}
virtual void GetTargetRelocation(MachineRelocation &MR, MachOSection &From,
More information about the llvm-commits
mailing list