[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp

Alkis Evlogimenos alkis at cs.uiuc.edu
Sat Jun 12 19:50:01 PDT 2004


Changes in directory llvm-java/lib/Compiler:

Compiler.cpp updated: 1.44 -> 1.45

---
Log message:

Make array types be pointers to arrays not the arrays itself. This is
not complete yet as java arrays should be objects but it allows the
llvm module to pass through the verifier.


---
Diffs of the changes:  (+5 -1)

Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.44 llvm-java/lib/Compiler/Compiler.cpp:1.45
--- llvm-java/lib/Compiler/Compiler.cpp:1.44	Sat Jun 12 19:37:46 2004
+++ llvm-java/lib/Compiler/Compiler.cpp	Sat Jun 12 19:44:06 2004
@@ -182,7 +182,11 @@
                 // of type className
                 return PointerType::get(Type::SByteTy);
             }
-            case '[': return ArrayType::get(getTypeHelper(descr, i), 0);
+            case '[':
+                // FIXME: this should really be a new class
+                // represeting the array of the following type
+                return PointerType::get(
+                    ArrayType::get(getTypeHelper(descr, i), 0));
             case '(': {
                 std::vector<const Type*> params;
                 while (descr[i] != ')')





More information about the llvm-commits mailing list