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

Alkis Evlogimenos alkis at cs.uiuc.edu
Fri Feb 11 15:18:54 PST 2005



Changes in directory llvm-java/lib/ClassFile:

ClassFile.cpp updated: 1.36 -> 1.37
---
Log message:

Better support for new classdump.


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

 ClassFile.cpp |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)


Index: llvm-java/lib/ClassFile/ClassFile.cpp
diff -u llvm-java/lib/ClassFile/ClassFile.cpp:1.36 llvm-java/lib/ClassFile/ClassFile.cpp:1.37
--- llvm-java/lib/ClassFile/ClassFile.cpp:1.36	Fri Feb 11 14:19:16 2005
+++ llvm-java/lib/ClassFile/ClassFile.cpp	Fri Feb 11 17:18:43 2005
@@ -457,7 +457,7 @@
 
 std::ostream& ConstantString::dump(std::ostream& os) const
 {
-  return os << "string " << *getValue();
+  return os << "String " << *getValue();
 }
 
 ConstantInteger::ConstantInteger(const ConstantPool& cp, std::istream& is)
@@ -469,7 +469,7 @@
 
 std::ostream& ConstantInteger::dump(std::ostream& os) const
 {
-  return os << value_;
+  return os << "int " << value_;
 }
 
 ConstantFloat::ConstantFloat(const ConstantPool& cp, std::istream& is)
@@ -481,7 +481,7 @@
 
 std::ostream& ConstantFloat::dump(std::ostream& os) const
 {
-  return os << value_;
+  return os << "float " << value_;
 }
 
 ConstantLong::ConstantLong(const ConstantPool& cp, std::istream& is)
@@ -493,7 +493,7 @@
 
 std::ostream& ConstantLong::dump(std::ostream& os) const
 {
-  return os << value_;
+  return os << "long " << value_;
 }
 
 ConstantDouble::ConstantDouble(const ConstantPool& cp, std::istream& is)
@@ -505,7 +505,7 @@
 
 std::ostream& ConstantDouble::dump(std::ostream& os) const
 {
-  return os << value_;
+  return os << "double " << value_;
 }
 
 ConstantNameAndType::ConstantNameAndType(const ConstantPool& cp,






More information about the llvm-commits mailing list