From 6dbd0f2a810e1ac64f90708524d4e45850fa47eb Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 7 Sep 2001 16:27:25 +0000 Subject: [PATCH] Clean stuff up. Types are not named, they are described llvm-svn: 433 --- llvm/include/llvm/Assembly/Writer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Assembly/Writer.h b/llvm/include/llvm/Assembly/Writer.h index 0fbb695a63d0..f883312966a3 100644 --- a/llvm/include/llvm/Assembly/Writer.h +++ b/llvm/include/llvm/Assembly/Writer.h @@ -80,12 +80,12 @@ inline ostream &operator<<(ostream &o, const ConstPoolVal *I) { inline ostream &operator<<(ostream &o, const Type *T) { if (!T) return o << ""; - 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 <getType() << " " << I->getName(); case Value::InstructionVal: WriteToAssembly((const Instruction *)I, o); break;