[vmkit-commits] [vmkit] r198245 - an array has now also the J3Object* type

Gael Thomas gael.thomas at lip6.fr
Mon Dec 30 12:40:54 PST 2013


Author: gthomas
Date: Mon Dec 30 14:40:54 2013
New Revision: 198245

URL: http://llvm.org/viewvc/llvm-project?rev=198245&view=rev
Log:
an array has now also the J3Object* type

Modified:
    vmkit/branches/mcjit/include/j3/j3class.h
    vmkit/branches/mcjit/lib/j3/vm/j3class.cc

Modified: vmkit/branches/mcjit/include/j3/j3class.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/branches/mcjit/include/j3/j3class.h?rev=198245&r1=198244&r2=198245&view=diff
==============================================================================
--- vmkit/branches/mcjit/include/j3/j3class.h (original)
+++ vmkit/branches/mcjit/include/j3/j3class.h Mon Dec 30 14:40:54 2013
@@ -292,7 +292,6 @@ namespace j3 {
 	};
 
 	class J3ArrayClass : public J3ObjectType {
-		llvm::Type*         _llvmType;
 		J3Type*             _component;
 
 		void                doResolve(J3Field* hiddenFields, size_t nbHiddenFields);
@@ -307,7 +306,6 @@ namespace j3 {
 
 		J3Type*             component() { return _component; }
 		bool                isArrayClass() { return 1; }
-		llvm::Type*         llvmType();
 	};
 
 	class J3Primitive : public J3Type {

Modified: vmkit/branches/mcjit/lib/j3/vm/j3class.cc
URL: http://llvm.org/viewvc/llvm-project/vmkit/branches/mcjit/lib/j3/vm/j3class.cc?rev=198245&r1=198244&r2=198245&view=diff
==============================================================================
--- vmkit/branches/mcjit/lib/j3/vm/j3class.cc (original)
+++ vmkit/branches/mcjit/lib/j3/vm/j3class.cc Mon Dec 30 14:40:54 2013
@@ -886,22 +886,6 @@ void J3ArrayClass::doNativeName() {
 	loader()->addSymbol(_nativeName, this);
 }
 
-llvm::Type* J3ArrayClass::llvmType() {
-	if(!_llvmType) {
-		llvm::Type* body[2] = {
-			loader()->vm()->typeJ3ArrayObject,
-			llvm::ArrayType::get(component()->llvmType(), 0) /* has to be called first */
-		};
-		
-		doNativeName();
-		_llvmType = llvm::PointerType::getUnqual(llvm::StructType::create(loader()->vm()->llvmContext(), 
-																																			body,
-																																			_nativeName));
-	}
-	//return loader()->vm()->typeJ3ObjectPtr;
-	return _llvmType;
-}
-
 /*  
  *  ------------ J3Primitive ------------
  */





More information about the vmkit-commits mailing list