[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Sun Nov 16 17:09:01 PST 2003
Changes in directory llvm/lib/VMCore:
AsmWriter.cpp updated: 1.109 -> 1.110
---
Log message:
When you hand WriteAsOperand a type, it now prints out its symbolic name.
---
Diffs of the changes: (+3 -0)
Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.109 llvm/lib/VMCore/AsmWriter.cpp:1.110
--- llvm/lib/VMCore/AsmWriter.cpp:1.109 Sun Nov 16 16:59:57 2003
+++ llvm/lib/VMCore/AsmWriter.cpp Sun Nov 16 17:08:27 2003
@@ -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;
}
More information about the llvm-commits
mailing list