diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-18 05:57:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-18 05:57:43 +0000 |
commit | 4d45bd007d0c3a3a6e5b3876b67fd495acb0db2b (patch) | |
tree | cb11e8a60837799547960e7f7b8347a431994934 /lib/VMCore/AsmWriter.cpp | |
parent | cda965e28a3411cb9e41f58cddc4c9c1afa0e8a1 (diff) |
Add support for the new varargs intrinsics and instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9226 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 3601dffe42..f8716757db 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -661,7 +661,10 @@ void AssemblyWriter::printFunction(const Function *F) { } printType(F->getReturnType()) << " "; - if (!F->getName().empty()) Out << getLLVMName(F->getName()); + if (!F->getName().empty()) + Out << getLLVMName(F->getName()); + else + Out << "\"\""; Out << "("; Table.incorporateFunction(F); @@ -882,10 +885,14 @@ void AssemblyWriter::printInstruction(const Instruction &I) { writeOperand(Operand, true); Out << " to "; printType(I.getType()); - } else if (isa<VarArgInst>(I)) { + } else if (isa<VAArgInst>(I)) { writeOperand(Operand, true); Out << ", "; printType(I.getType()); + } else if (const VANextInst *VAN = dyn_cast<VANextInst>(&I)) { + writeOperand(Operand, true); + Out << ", "; + printType(VAN->getArgType()); } else if (Operand) { // Print the normal way... // PrintAllTypes - Instructions who have operands of all the same type |