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

Nicolas Geoffray nicolas.geoffray at lip6.fr
Wed Jul 29 03:21:01 PDT 2009


Author: geoffray
Date: Wed Jul 29 05:20:35 2009
New Revision: 77449

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


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=77449&r1=77448&r2=77449&view=diff

==============================================================================
--- vmkit/trunk/lib/JnJVM/Compiler/JavaAOTCompiler.cpp (original)
+++ vmkit/trunk/lib/JnJVM/Compiler/JavaAOTCompiler.cpp Wed Jul 29 05:20:35 2009
@@ -825,7 +825,6 @@
   const StructType* STy = 
     dyn_cast<StructType>(JnjvmModule::JavaFieldType->getContainedType(0));
   Module& Mod = *getLLVMModule();
-  LLVMContext& Context = Mod.getContext();
   
   std::vector<Constant*> FieldElts;
   std::vector<Constant*> TempElts;
@@ -1217,7 +1216,6 @@
 template<typename T>
 Constant* JavaAOTCompiler::CreateConstantFromArray(const T* val, const Type* Ty) {
   Module& Mod = *getLLVMModule();
-  LLVMContext& Context = Mod.getContext();
   std::vector<const Type*> Elemts;
   const ArrayType* ATy = ArrayType::get(Ty, val->size);
   Elemts.push_back(JnjvmModule::JavaObjectType->getContainedType(0));
@@ -1253,8 +1251,6 @@
 }
 
 Constant* JavaAOTCompiler::CreateConstantFromUTF8(const UTF8* val) {
-  Module& Mod = *getLLVMModule();
-  LLVMContext& Context = Mod.getContext();
   std::vector<const Type*> Elemts;
   const ArrayType* ATy = ArrayType::get(Type::Int16Ty, val->size);
   Elemts.push_back(JnjvmModule::pointerSizeType);
@@ -1299,7 +1295,6 @@
 
 Constant* JavaAOTCompiler::CreateConstantFromVT(JavaVirtualTable* VT) {
   Module& Mod = *getLLVMModule();
-  LLVMContext& Context = Mod.getContext();
   CommonClass* classDef = VT->cl;
   uint32 size = classDef->isClass() ? classDef->asClass()->virtualTableSize :
                                       JavaVirtualTable::getBaseSize();
@@ -1926,8 +1921,6 @@
 }
 
 void JavaAOTCompiler::generateMain(const char* name, bool jit) {
-  Module& Mod = *getLLVMModule();
-  LLVMContext& Context = Mod.getContext();
 
   // Type Definitions
   std::vector<const Type*> FuncArgs;





More information about the vmkit-commits mailing list