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

Alkis Evlogimenos alkis at cs.uiuc.edu
Sun Dec 5 01:51:05 PST 2004



Changes in directory llvm-java/lib/Compiler:

Compiler.cpp updated: 1.164 -> 1.165
---
Log message:

Make first argument of a member function be a pointer to
llvm_java_object_base not a pointer to a pointer.


---
Diffs of the changes:  (+6 -8)

Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.164 llvm-java/lib/Compiler/Compiler.cpp:1.165
--- llvm-java/lib/Compiler/Compiler.cpp:1.164	Sun Dec  5 03:25:16 2004
+++ llvm-java/lib/Compiler/Compiler.cpp	Sun Dec  5 03:50:54 2004
@@ -400,8 +400,7 @@
 
           std::string funcName = "java/lang/Object/" + methodDescr;
           const FunctionType* funcTy = cast<FunctionType>(
-            getType(method->getDescriptor(),
-                    PointerType::get(ClassInfo::ObjectBaseTy)));
+            getType(method->getDescriptor(), ClassInfo::ObjectBaseTy));
 
           Function* vfun = module_.getOrInsertFunction(funcName, funcTy);
           scheduleFunction(vfun);
@@ -772,8 +771,7 @@
           std::string funcName = className + '/' + methodDescr;
 
           const FunctionType* funcTy = cast<FunctionType>(
-            getType(method->getDescriptor(),
-                    PointerType::get(ClassInfo::ObjectBaseTy)));
+            getType(method->getDescriptor(), ClassInfo::ObjectBaseTy));
           Function* vfun = module_.getOrInsertFunction(funcName, funcTy);
           if (!method->isAbstract())
             scheduleFunction(vfun);
@@ -1393,7 +1391,7 @@
 
       FunctionType* funcTy = cast<FunctionType>(
         getType(method->getDescriptor(),
-                method->isStatic() ? NULL : PointerType::get(ClassInfo::ObjectBaseTy)));
+                method->isStatic() ? NULL : ClassInfo::ObjectBaseTy));
       std::string funcName =
         clazz->getThisClass()->getName()->str() + '/' +
         method->getName()->str() + method->getDescriptor()->str();
@@ -2077,7 +2075,7 @@
 
       FunctionType* funTy =
         cast<FunctionType>(getType(nameAndType->getDescriptor(),
-                                   PointerType::get(ClassInfo::ObjectBaseTy)));
+                                   ClassInfo::ObjectBaseTy));
 
       std::vector<Value*> params(getParams(funTy));
 
@@ -2120,7 +2118,7 @@
 
       FunctionType* funcTy =
         cast<FunctionType>(getType(nameAndType->getDescriptor(),
-                                   PointerType::get(ClassInfo::ObjectBaseTy)));
+                                   ClassInfo::ObjectBaseTy));
       Function* function = module_.getOrInsertFunction(funcName, funcTy);
       scheduleFunction(function);
       makeCall(function, getParams(funcTy));
@@ -2162,7 +2160,7 @@
 
       FunctionType* funTy =
         cast<FunctionType>(getType(nameAndType->getDescriptor(),
-                                   PointerType::get(ClassInfo::ObjectBaseTy)));
+                                   ClassInfo::ObjectBaseTy));
 
       std::vector<Value*> params(getParams(funTy));
 






More information about the llvm-commits mailing list