[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCMachOWriter.cpp

Bill Wendling isanbard at gmail.com
Wed Jan 17 17:23:31 PST 2007



Changes in directory llvm/lib/Target/PowerPC:

PPCMachOWriter.cpp updated: 1.12 -> 1.13
---
Log message:

Have the OutputBuffer take the is64Bit and isLittleEndian booleans.


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

 PPCMachOWriter.cpp |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)


Index: llvm/lib/Target/PowerPC/PPCMachOWriter.cpp
diff -u llvm/lib/Target/PowerPC/PPCMachOWriter.cpp:1.12 llvm/lib/Target/PowerPC/PPCMachOWriter.cpp:1.13
--- llvm/lib/Target/PowerPC/PPCMachOWriter.cpp:1.12	Wed Jan 17 16:22:31 2007
+++ llvm/lib/Target/PowerPC/PPCMachOWriter.cpp	Wed Jan 17 19:23:11 2007
@@ -93,11 +93,11 @@
                               isExtern, PPC_RELOC_VANILLA);
       ++From.nreloc;
 
-      OutputBuffer RelocOut(TM, From.RelocBuffer);
+      OutputBuffer RelocOut(From.RelocBuffer, is64Bit, isLittleEndian);
       RelocOut.outword(VANILLA.r_address);
       RelocOut.outword(VANILLA.getPackedFields());
 
-      OutputBuffer SecOut(TM, From.SectionData);
+      OutputBuffer SecOut(From.SectionData, is64Bit, isLittleEndian);
       SecOut.fixword(Addr, MR.getMachineCodeOffset());
       break;
     }
@@ -109,7 +109,7 @@
       Addr <<= 2;
       Addr |= (From.SectionData[MR.getMachineCodeOffset()] << 24);
 
-      OutputBuffer SecOut(TM, From.SectionData);
+      OutputBuffer SecOut(From.SectionData, is64Bit, isLittleEndian);
       SecOut.fixword(Addr, MR.getMachineCodeOffset());
       break;
     }
@@ -118,7 +118,7 @@
       Addr -= MR.getMachineCodeOffset();
       Addr &= 0xFFFC;
 
-      OutputBuffer SecOut(TM, From.SectionData);
+      OutputBuffer SecOut(From.SectionData, is64Bit, isLittleEndian);
       SecOut.fixhalf(Addr, MR.getMachineCodeOffset() + 2);
       break;
     }
@@ -131,7 +131,7 @@
       ++From.nreloc;
       ++From.nreloc;
 
-      OutputBuffer RelocOut(TM, From.RelocBuffer);
+      OutputBuffer RelocOut(From.RelocBuffer, is64Bit, isLittleEndian);
       RelocOut.outword(HA16.r_address);
       RelocOut.outword(HA16.getPackedFields());
       RelocOut.outword(PAIR.r_address);
@@ -139,7 +139,7 @@
       printf("ha16: %x\n", (unsigned)Addr);
       Addr += 0x8000;
 
-      OutputBuffer SecOut(TM, From.SectionData);
+      OutputBuffer SecOut(From.SectionData, is64Bit, isLittleEndian);
       SecOut.fixhalf(Addr >> 16, MR.getMachineCodeOffset() + 2);
       break;
     }
@@ -152,14 +152,14 @@
       ++From.nreloc;
       ++From.nreloc;
 
-      OutputBuffer RelocOut(TM, From.RelocBuffer);
+      OutputBuffer RelocOut(From.RelocBuffer, is64Bit, isLittleEndian);
       RelocOut.outword(LO16.r_address);
       RelocOut.outword(LO16.getPackedFields());
       RelocOut.outword(PAIR.r_address);
       RelocOut.outword(PAIR.getPackedFields());
       printf("lo16: %x\n", (unsigned)Addr);
 
-      OutputBuffer SecOut(TM, From.SectionData);
+      OutputBuffer SecOut(From.SectionData, is64Bit, isLittleEndian);
       SecOut.fixhalf(Addr, MR.getMachineCodeOffset() + 2);
       break;
     }






More information about the llvm-commits mailing list