From 68e0278815836ca414ceb9b6087bf3cdc051947a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 22 May 2002 22:29:26 +0000 Subject: [PATCH] Print out function name with % style instead of "" style git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2726 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/AsmWriter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 75016965128..527df4f0a17 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -574,7 +574,7 @@ void AssemblyWriter::printFunction(const Function *M) { // Print out the return type and name... Out << "\n" << (M->isExternal() ? "declare " : "") << (M->hasInternalLinkage() ? "internal " : ""); - printType(M->getReturnType()) << " \"" << M->getName() << "\"("; + printType(M->getReturnType()) << " %" << M->getName() << "("; Table.incorporateFunction(M); // Loop over the arguments, printing them... @@ -768,7 +768,7 @@ void AssemblyWriter::printInstruction(const Instruction *I) { writeOperand(AI->getArraySize(), true); } } else if (isa(I)) { - writeOperand(Operand, true); + if (Operand) writeOperand(Operand, true); Out << " to "; printType(I->getType()); } else if (Operand) { // Print the normal way...