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

Alkis Evlogimenos alkis at cs.uiuc.edu
Mon Mar 28 17:01:27 PST 2005



Changes in directory llvm-java/lib/Compiler:

VMClass.cpp updated: 1.19 -> 1.20
---
Log message:

Eliminate class lookup for the superclass.


---
Diffs of the changes:  (+1 -1)

 VMClass.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm-java/lib/Compiler/VMClass.cpp
diff -u llvm-java/lib/Compiler/VMClass.cpp:1.19 llvm-java/lib/Compiler/VMClass.cpp:1.20
--- llvm-java/lib/Compiler/VMClass.cpp:1.19	Mon Mar 28 18:47:10 2005
+++ llvm-java/lib/Compiler/VMClass.cpp	Mon Mar 28 19:01:16 2005
@@ -114,7 +114,7 @@
     else {
       // Our direct super class.
       const VMClass* superClass =
-        resolver_->getClass(classFile_->getSuperClass()->getName()->str());
+        getClassForClass(classFile_->getSuperClassIndex());
 
       // Add the interfaces of our direct superclass.
       for (unsigned i = 0, e = superClass->getNumInterfaces(); i != e; ++i)






More information about the llvm-commits mailing list