diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-05-22 22:29:26 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-05-22 22:29:26 +0000 |
| commit | 68e0278815836ca414ceb9b6087bf3cdc051947a (patch) | |
| tree | 451858c6d8524861202394b198b455f630aa9d38 /lib/VMCore/AsmWriter.cpp | |
| parent | 740d3cdabd465d2be4fb6855bd05259da1b9b517 (diff) | |
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
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
| -rw-r--r-- | lib/VMCore/AsmWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 7501696512..527df4f0a1 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<CastInst>(I)) { - writeOperand(Operand, true); + if (Operand) writeOperand(Operand, true); Out << " to "; printType(I->getType()); } else if (Operand) { // Print the normal way... |
