[vmkit-commits] [vmkit] r77314 - /vmkit/trunk/lib/JnJVM/Compiler/JavaAOTCompiler.cpp

Nicolas Geoffray nicolas.geoffray at lip6.fr
Tue Jul 28 03:04:48 PDT 2009


Author: geoffray
Date: Tue Jul 28 05:04:44 2009
New Revision: 77314

URL: http://llvm.org/viewvc/llvm-project?rev=77314&view=rev
Log:
Remove warning.


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=77314&r1=77313&r2=77314&view=diff

==============================================================================
--- vmkit/trunk/lib/JnJVM/Compiler/JavaAOTCompiler.cpp (original)
+++ vmkit/trunk/lib/JnJVM/Compiler/JavaAOTCompiler.cpp Tue Jul 28 05:04:44 2009
@@ -326,7 +326,6 @@
   const Type* Ty = LCI->getStaticType();
   const StructType* STy = dyn_cast<StructType>(Ty->getContainedType(0));
   Module& Mod = *getLLVMModule();
-  LLVMContext& Context = Mod.getContext();
   
   std::vector<Constant*> Elts;
   
@@ -515,7 +514,6 @@
     dyn_cast<StructType>(JnjvmModule::JavaObjectType->getContainedType(0));
   
   std::vector<Constant*> Elmts;
-  LLVMContext& Context = getLLVMModule()->getContext();
 
   // VT
   Elmts.push_back(getVirtualTable(cl->virtualVT));
@@ -561,7 +559,6 @@
 Constant* JavaAOTCompiler::CreateConstantFromJavaObject(JavaObject* obj) {
   CommonClass* cl = obj->getClass();
   Module& Mod = *getLLVMModule();
-  LLVMContext& Context = getLLVMModule()->getContext();
 
   if (cl->isArray()) {
     Classpath* upcalls = cl->classLoader->bootstrapLoader->upcalls;
@@ -669,7 +666,6 @@
   LLVMClassInfo* LCI = getClassInfo(cl);
   const StructType* STy = 
     dyn_cast<StructType>(LCI->getVirtualType()->getContainedType(0));
-  LLVMContext& Context = getLLVMModule()->getContext();
 
   std::vector<Constant*> Elmts;
 
@@ -738,7 +734,6 @@
 Constant* JavaAOTCompiler::CreateConstantFromAttribut(Attribut& attribut) {
   const StructType* STy = 
     dyn_cast<StructType>(JnjvmModule::AttributType->getContainedType(0));
-  LLVMContext& Context = getLLVMModule()->getContext();
 
 
   std::vector<Constant*> Elmts;
@@ -968,7 +963,6 @@
   const llvm::Type* JCPTy = 
     JnjvmModule::JavaClassPrimitiveType->getContainedType(0);
   const StructType* STy = dyn_cast<StructType>(JCPTy);
-  LLVMContext& Context = getLLVMModule()->getContext();
   
   std::vector<Constant*> ClassElts;
   
@@ -984,7 +978,6 @@
 Constant* JavaAOTCompiler::CreateConstantFromClassArray(ClassArray* cl) {
   const StructType* STy = 
     dyn_cast<StructType>(JnjvmModule::JavaClassArrayType->getContainedType(0));
-  LLVMContext& Context = getLLVMModule()->getContext();
   
   std::vector<Constant*> ClassElts;
   Constant* ClGEPs[2] = { getIntrinsics()->constantZero,





More information about the vmkit-commits mailing list