summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-22 22:29:26 +0000
committerChris Lattner <sabre@nondot.org>2002-05-22 22:29:26 +0000
commit143e5a47c02eadecdf332f06008f5af82928abe9 (patch)
tree50137fd6fb0c0a7f3476e355c0e4a72dbdc385e4 /llvm/lib
parentbc42e52d9ac4fae9daa94d55542057ef14763f98 (diff)
downloadbcm5719-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.cpp4
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...
OpenPOWER on IntegriCloud