[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Sep 3 12:57:01 PDT 2003


Changes in directory llvm/lib/VMCore:

AsmWriter.cpp updated: 1.96 -> 1.97

---
Log message:

Fix bug where we couldn't print a function without a name


---
Diffs of the changes:

Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.96 llvm/lib/VMCore/AsmWriter.cpp:1.97
--- llvm/lib/VMCore/AsmWriter.cpp:1.96	Sun Aug 24 08:48:48 2003
+++ llvm/lib/VMCore/AsmWriter.cpp	Wed Sep  3 12:56:43 2003
@@ -658,7 +658,9 @@
     case GlobalValue::ExternalLinkage: break;
     }
 
-  printType(F->getReturnType()) << " " << getLLVMName(F->getName()) << "(";
+  printType(F->getReturnType()) << " ";
+  if (!F->getName().empty()) Out << getLLVMName(F->getName());
+  Out << "(";
   Table.incorporateFunction(F);
 
   // Loop over the arguments, printing them...





More information about the llvm-commits mailing list