Clean stuff up.
authorChris Lattner <sabre@nondot.org>
Fri, 7 Sep 2001 16:27:25 +0000 (16:27 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 7 Sep 2001 16:27:25 +0000 (16:27 +0000)
Types are not named, they are described

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@433 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Assembly/Writer.h

index 0fbb695a63d0c40ab2b72cf7c9e55da0b2f40392..f883312966a31b2542d430247b64defaf7bea64b 100644 (file)
@@ -80,12 +80,12 @@ inline ostream &operator<<(ostream &o, const ConstPoolVal *I) {
 
 inline ostream &operator<<(ostream &o, const Type *T) {
   if (!T) return o << "<null Type>";
-  return o << T->getName();
+  return o << T->getDescription();
 }
 
 inline ostream &operator<<(ostream &o, const Value *I) {
   switch (I->getValueType()) {
-  case Value::TypeVal:        return o << (const Type*)I;
+  case Value::TypeVal:        return o << I->castTypeAsserting();
   case Value::ConstantVal:    WriteToAssembly((const ConstPoolVal*)I, o); break;
   case Value::MethodArgumentVal: return o <<I->getType() << " " << I->getName();
   case Value::InstructionVal: WriteToAssembly((const Instruction *)I, o); break;