[llvm-commits] CVS: llvm-java/runtime/runtime.c
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sun Oct 17 22:48:13 PDT 2004
Changes in directory llvm-java/runtime:
runtime.c updated: 1.8 -> 1.9
---
Log message:
Properly set the vtable pointer of a newly created object.
---
Diffs of the changes: (+5 -0)
Index: llvm-java/runtime/runtime.c
diff -u llvm-java/runtime/runtime.c:1.8 llvm-java/runtime/runtime.c:1.9
--- llvm-java/runtime/runtime.c:1.8 Wed Sep 22 18:49:47 2004
+++ llvm-java/runtime/runtime.c Mon Oct 18 00:48:02 2004
@@ -55,6 +55,11 @@
return obj->vtable;
}
+void llvm_java_SetObjectClass(jobject obj,
+ struct llvm_java_object_vtable* clazz) {
+ obj->vtable = clazz;
+}
+
jint llvm_java_IsInstanceOf(jobject obj,
struct llvm_java_object_vtable* clazz) {
/* trivial case 1: a null object can be cast to any type */
More information about the llvm-commits
mailing list