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 | cd4a398c25a72ff307b48b78f813bb23e7a3a9ca (patch) | |
tree | 4c1e27a88f74008eee094b3770fc9ef2affad52d /lib/VMCore/AsmWriter.cpp | |
parent | 9cebe2d83be10f0189a789324ce16209f5ec602c (diff) |
When you hand WriteAsOperand a type, it now prints out its symbolic name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10042 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index da3826019a..f92fe25fd2 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/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; } |