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 | 143e5a47c02eadecdf332f06008f5af82928abe9 (patch) | |
| tree | 50137fd6fb0c0a7f3476e355c0e4a72dbdc385e4 /llvm/lib | |
| parent | bc42e52d9ac4fae9daa94d55542057ef14763f98 (diff) | |
| download | bcm5719-llvm-143e5a47c02eadecdf332f06008f5af82928abe9.tar.gz bcm5719-llvm-143e5a47c02eadecdf332f06008f5af82928abe9.zip | |
Print out function name with % style instead of "" style
llvm-svn: 2726
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index 75016965128..527df4f0a17 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/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... |

