diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-11-16 23:08:27 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-11-16 23:08:27 +0000 |
commit | fda1f1835bc18ffc076bd7d6d578b277de496b1d (patch) | |
tree | 5421272eb882e9ae12e6ad73c4a77639d353d9ca /llvm | |
parent | 9f47927b28ca9ea84ef9a11b61a92cb432fc7677 (diff) | |
download | bcm5719-llvm-fda1f1835bc18ffc076bd7d6d578b277de496b1d.tar.gz bcm5719-llvm-fda1f1835bc18ffc076bd7d6d578b277de496b1d.zip |
When you hand WriteAsOperand a type, it now prints out its symbolic name.
llvm-svn: 10042
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index da3826019ab..f92fe25fd25 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -458,6 +458,9 @@ std::ostream &WriteAsOperand(std::ostream &Out, const Value *V, bool PrintType, 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; } |