[llvm-commits] CVS: llvm/runtime/GC/SemiSpace/semispace.c

Chris Lattner lattner at cs.uiuc.edu
Wed Jul 21 22:50:58 PDT 2004



Changes in directory llvm/runtime/GC/SemiSpace:

semispace.c updated: 1.4 -> 1.5

---
Log message:

Update GC intrinsics to take a pointer to the object as well as a pointer
to the field being updated.  Patch contributed by Tobias Nurmiranta


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

Index: llvm/runtime/GC/SemiSpace/semispace.c
diff -u llvm/runtime/GC/SemiSpace/semispace.c:1.4 llvm/runtime/GC/SemiSpace/semispace.c:1.5
--- llvm/runtime/GC/SemiSpace/semispace.c:1.4	Fri Jul 16 16:40:32 2004
+++ llvm/runtime/GC/SemiSpace/semispace.c	Thu Jul 22 00:50:48 2004
@@ -89,8 +89,8 @@
 }
 
 /* We use no read/write barriers */
-void *llvm_gc_read(void **P) { return *P; }
-void llvm_gc_write(void *V, void **P) { *P = V; }
+void *llvm_gc_read(void *ObjPtr, void **FieldPtr) { return *FieldPtr; }
+void llvm_gc_write(void *V, void *ObjPtr, void **FieldPtr) { *FieldPtr = V; }
 
 
 /*===----------------------------------------------------------------------===**





More information about the llvm-commits mailing list