commit | fda1f1835bc18ffc076bd7d6d578b277de496b1d | [log] [tgz] |
---|---|---|
author | Brian Gaeke <gaeke@uiuc.edu> | Sun Nov 16 23:08:27 2003 +0000 |
committer | Brian Gaeke <gaeke@uiuc.edu> | Sun Nov 16 23:08:27 2003 +0000 |
tree | 5421272eb882e9ae12e6ad73c4a77639d353d9ca | |
parent | 9f47927b28ca9ea84ef9a11b61a92cb432fc7677 [diff] [blame] |
When you hand WriteAsOperand a type, it now prints out its symbolic name. llvm-svn: 10042
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index da38260..f92fe25 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp
@@ -458,6 +458,9 @@ if (PrintType) printTypeInt(Out, V->getType(), TypeNames); + if (const Type *Ty = dyn_cast<Type> (V)) + printTypeInt(Out, Ty, TypeNames); + WriteAsOperandInternal(Out, V, PrintName, TypeNames, 0); return Out; }