diff options
author | Chris Lattner <sabre@nondot.org> | 2003-05-08 02:44:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-05-08 02:44:12 +0000 |
commit | 8f77daef04355c00b78b645f5aae5694e7a8b631 (patch) | |
tree | 44b5b785fe68c331d24b79ca5f6faa3850b9d586 /lib/VMCore/AsmWriter.cpp | |
parent | 97b315a58581261ec4bd6430ec9b438ba5fb728e (diff) |
Add support for the new va_arg instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index c060a8df20..28f26c833a 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -3,8 +3,7 @@ // This library implements the functionality defined in llvm/Assembly/Writer.h // // Note that these routines must be extremely tolerant of various errors in the -// LLVM code, because of of the primary uses of it is for debugging -// transformations. +// LLVM code, because it can be used for debugging transformations. // //===----------------------------------------------------------------------===// @@ -814,9 +813,13 @@ void AssemblyWriter::printInstruction(const Instruction &I) { writeOperand(AI->getArraySize(), true); } } else if (isa<CastInst>(I)) { - if (Operand) writeOperand(Operand, true); + writeOperand(Operand, true); Out << " to "; printType(I.getType()); + } else if (isa<VarArgInst>(I)) { + writeOperand(Operand, true); + Out << ", "; + printType(I.getType()); } else if (Operand) { // Print the normal way... // PrintAllTypes - Instructions who have operands of all the same type |