[vmkit-commits] [vmkit] r83545 - /vmkit/trunk/lib/JnJVM/Compiler/JavaAOTCompiler.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Thu Oct 8 06:12:11 PDT 2009
Author: geoffray
Date: Thu Oct 8 08:12:11 2009
New Revision: 83545
URL: http://llvm.org/viewvc/llvm-project?rev=83545&view=rev
Log:
Adjust AOT emission of Java classes.
Modified:
vmkit/trunk/lib/JnJVM/Compiler/JavaAOTCompiler.cpp
Modified: vmkit/trunk/lib/JnJVM/Compiler/JavaAOTCompiler.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/Compiler/JavaAOTCompiler.cpp?rev=83545&r1=83544&r2=83545&view=diff
==============================================================================
--- vmkit/trunk/lib/JnJVM/Compiler/JavaAOTCompiler.cpp (original)
+++ vmkit/trunk/lib/JnJVM/Compiler/JavaAOTCompiler.cpp Thu Oct 8 08:12:11 2009
@@ -1010,9 +1010,13 @@
// virtualSize
ClassElts.push_back(ConstantInt::get(Type::getInt32Ty(getGlobalContext()),
cl->virtualSize));
+
+ // alginment
+ ClassElts.push_back(ConstantInt::get(Type::getInt32Ty(getGlobalContext()),
+ cl->alignment));
// IsolateInfo
- const ArrayType* ATy = dyn_cast<ArrayType>(STy->getContainedType(2));
+ const ArrayType* ATy = dyn_cast<ArrayType>(STy->getContainedType(3));
assert(ATy && "Malformed type");
const StructType* TCMTy = dyn_cast<StructType>(ATy->getContainedType(0));
More information about the vmkit-commits
mailing list