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

Bill Wendling isanbard at gmail.com
Fri Feb 2 18:39:56 PST 2007



Changes in directory llvm/lib/CodeGen:

MachOWriter.cpp updated: 1.21 -> 1.22
---
Log message:

Pass in non-Mach-O-specific parameters to the GetTargetRelocation method.


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

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


Index: llvm/lib/CodeGen/MachOWriter.cpp
diff -u llvm/lib/CodeGen/MachOWriter.cpp:1.21 llvm/lib/CodeGen/MachOWriter.cpp:1.22
--- llvm/lib/CodeGen/MachOWriter.cpp:1.21	Mon Jan 29 15:20:42 2007
+++ llvm/lib/CodeGen/MachOWriter.cpp	Fri Feb  2 20:39:40 2007
@@ -726,8 +726,13 @@
       TargetSection = MOSPtr->Index;
       MR.setResultPointer((void*)Offset);
     }
-    
-    GetTargetRelocation(MR, MOS, *SectionList[TargetSection-1], Scattered);
+
+    OutputBuffer RelocOut(MOS.RelocBuffer, is64Bit, isLittleEndian);
+    OutputBuffer SecOut(MOS.SectionData, is64Bit, isLittleEndian);
+    MachOSection &To = *SectionList[TargetSection - 1];
+
+    MOS.nreloc += GetTargetRelocation(MR, MOS.Index, To.addr, To.Index,
+                                      RelocOut, SecOut, Scattered);
   }
 }
 






More information about the llvm-commits mailing list