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

Alkis Evlogimenos alkis at cs.uiuc.edu
Sat Apr 2 01:42:10 PST 2005



Changes in directory llvm-java/lib/Compiler:

VMMethod.cpp updated: 1.2 -> 1.3
---
Log message:

Use VMClass::getName() now that it returns the real class name.


---
Diffs of the changes:  (+3 -4)

 VMMethod.cpp |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)


Index: llvm-java/lib/Compiler/VMMethod.cpp
diff -u llvm-java/lib/Compiler/VMMethod.cpp:1.2 llvm-java/lib/Compiler/VMMethod.cpp:1.3
--- llvm-java/lib/Compiler/VMMethod.cpp:1.2	Fri Apr  1 12:24:48 2005
+++ llvm-java/lib/Compiler/VMMethod.cpp	Sat Apr  2 03:41:59 2005
@@ -25,13 +25,12 @@
 {
   const std::string& methodName = method_->getName()->str();
   const std::string& methodDescriptor = method_->getDescriptor()->str();
+  const std::string& functionName =
+    parent_->getName() + '/' + methodName + methodDescriptor;
+
   Resolver* resolver = parent_->getResolver();
   const FunctionType* functionType = cast<FunctionType>(
     resolver->getType(methodDescriptor, !method_->isStatic()));
-  const std::string& className =
-    parent_->getClassFile()->getThisClass()->getName()->str();
-  const std::string& functionName =
-    className + '/' + methodName + methodDescriptor;
   Module* module = resolver->getModule();
   function_ = module->getOrInsertFunction(functionName, functionType);
 }






More information about the llvm-commits mailing list