[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Tue Sep 21 15:23:11 PDT 2004
Changes in directory llvm-java/lib/Compiler:
Compiler.cpp updated: 1.107 -> 1.108
---
Log message:
Change typeinfo struct and make instanceOf method a bit more readable.
---
Diffs of the changes: (+3 -3)
Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.107 llvm-java/lib/Compiler/Compiler.cpp:1.108
--- llvm-java/lib/Compiler/Compiler.cpp:1.107 Mon Sep 20 19:08:05 2004
+++ llvm-java/lib/Compiler/Compiler.cpp Tue Sep 21 17:23:00 2004
@@ -329,8 +329,8 @@
// llvm_java_object_typeinfo struct first
// depth
- elements.push_back(Type::UIntTy);
- init.push_back(llvm::ConstantUInt::get(elements[0], 0));
+ elements.push_back(Type::IntTy);
+ init.push_back(llvm::ConstantSInt::get(elements[0], 0));
// superclasses vtable pointers
elements.push_back(PointerType::get(PointerType::get(VTtype)));
init.push_back(llvm::Constant::getNullValue(elements[1]));
@@ -566,7 +566,7 @@
tie(depth, superClassesVTables) = buildSuperClassesVTables(cf, vi);
// the depth (java/lang/Object has depth 0)
- typeInfoInit.push_back(ConstantUInt::get(Type::UIntTy, depth));
+ typeInfoInit.push_back(ConstantSInt::get(Type::IntTy, depth));
// the super classes' vtables
typeInfoInit.push_back(superClassesVTables);
More information about the llvm-commits
mailing list