aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-07 16:27:25 +0000
committerChris Lattner <sabre@nondot.org>2001-09-07 16:27:25 +0000
commit740611a0347b9d9658c86c252bd7448cde70f1bc (patch)
tree64c0f3299567e815f2ba89ebb0282329279d5f92
parent4c4007b3df52672f6b21594c8448538e1a5c4d90 (diff)
Clean stuff up.
Types are not named, they are described git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@433 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Assembly/Writer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Assembly/Writer.h b/include/llvm/Assembly/Writer.h
index 0fbb695a63..f883312966 100644
--- a/include/llvm/Assembly/Writer.h
+++ b/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 << "<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;