When you hand WriteAsOperand a type, it now prints out its symbolic name.
authorBrian Gaeke <gaeke@uiuc.edu>
Sun, 16 Nov 2003 23:08:27 +0000 (23:08 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Sun, 16 Nov 2003 23:08:27 +0000 (23:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10042 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index da3826019ab3487deec68c1e06b268b7dd87dd9d..f92fe25fd2528f0f2cbefc6d79c6f774eddee393 100644 (file)
@@ -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;
 }