[llvm-commits] CVS: llvm-java/tools/classdump/classdump.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sat Mar 26 11:14:14 PST 2005
Changes in directory llvm-java/tools/classdump:
classdump.cpp updated: 1.20 -> 1.21
---
Log message:
Expose ConstantClass indices.
---
Diffs of the changes: (+4 -5)
classdump.cpp | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
Index: llvm-java/tools/classdump/classdump.cpp
diff -u llvm-java/tools/classdump/classdump.cpp:1.20 llvm-java/tools/classdump/classdump.cpp:1.21
--- llvm-java/tools/classdump/classdump.cpp:1.20 Wed Mar 23 19:04:28 2005
+++ llvm-java/tools/classdump/classdump.cpp Sat Mar 26 13:14:02 2005
@@ -60,11 +60,10 @@
if (ConstantClass* super = CF->getSuperClass())
Out << "extends " << super->getName()->str() << ' ';
- if (!CF->getInterfaces().empty()) {
- const Classes& interfaces = CF->getInterfaces();
- Out << "implements " << interfaces[0]->getName()->str();
- for (unsigned i = 1, e = interfaces.size(); i != e; ++i)
- Out << ", " << interfaces[i]->getName()->str();
+ if (CF->getNumInterfaces()) {
+ Out << "implements " << CF->getInterface(0)->getName()->str();
+ for (unsigned i = 1, e = CF->getNumInterfaces(); i != e; ++i)
+ Out << ", " << CF->getInterface(i)->getName()->str();
Out << ' ';
}
Out << "{\n";
More information about the llvm-commits
mailing list