[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Thu Aug 5 05:54:03 PDT 2004
Changes in directory llvm-java/lib/Compiler:
Compiler.cpp updated: 1.75 -> 1.76
---
Log message:
Handle package names in method descriptors.
---
Diffs of the changes: (+1 -1)
Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.75 llvm-java/lib/Compiler/Compiler.cpp:1.76
--- llvm-java/lib/Compiler/Compiler.cpp:1.75 Wed Aug 4 05:20:28 2004
+++ llvm-java/lib/Compiler/Compiler.cpp Thu Aug 5 07:53:53 2004
@@ -431,7 +431,7 @@
std::pair<ClassFile*, Method*>
findClassAndMethod(const std::string& classMethodDesc) {
- unsigned slash = classMethodDesc.find('/');
+ unsigned slash = classMethodDesc.rfind('/', classMethodDesc.find('('));
std::string className = classMethodDesc.substr(0, slash);
std::string methodNameAndDescr = classMethodDesc.substr(slash+1);
More information about the llvm-commits
mailing list