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
This commit is contained in:
Chris Lattner
2003-10-18 05:57:43 +00:00
parent cda965e28a
commit 4d45bd007d
5 changed files with 63 additions and 36 deletions

View File

@@ -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