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
This commit is contained in:
Chris Lattner 2002-05-22 22:29:26 +00:00
parent 740d3cdabd
commit 68e0278815

View File

@ -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<CastInst>(I)) {
writeOperand(Operand, true);
if (Operand) writeOperand(Operand, true);
Out << " to ";
printType(I->getType());
} else if (Operand) { // Print the normal way...