Fixed bug in Regression/CBackend/2002-10-30-FunctionPointerAlloca.ll
authorNick Hildenbrandt <hldnbrnd@uiuc.edu>
Fri, 1 Nov 2002 17:37:09 +0000 (17:37 +0000)
committerNick Hildenbrandt <hldnbrnd@uiuc.edu>
Fri, 1 Nov 2002 17:37:09 +0000 (17:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4486 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CBackend/CBackend.cpp
lib/Target/CBackend/Writer.cpp

index 1922e6fd26548471415f71593198aa3e8d627581..bd2e37647ef812e8333c218fc3d3f2d437a6c010 100644 (file)
@@ -208,7 +208,7 @@ ostream &CWriter::printType(const Type *Ty, const string &NameSoFar,
   case Type::FunctionTyID: {
     const FunctionType *MTy = cast<FunctionType>(Ty);
     printType(MTy->getReturnType(), "");
-    Out << " " << NameSoFar << " (";
+    Out << " (" << NameSoFar << ") (";
 
     for (FunctionType::ParamTypes::const_iterator
            I = MTy->getParamTypes().begin(),
index 1922e6fd26548471415f71593198aa3e8d627581..bd2e37647ef812e8333c218fc3d3f2d437a6c010 100644 (file)
@@ -208,7 +208,7 @@ ostream &CWriter::printType(const Type *Ty, const string &NameSoFar,
   case Type::FunctionTyID: {
     const FunctionType *MTy = cast<FunctionType>(Ty);
     printType(MTy->getReturnType(), "");
-    Out << " " << NameSoFar << " (";
+    Out << " (" << NameSoFar << ") (";
 
     for (FunctionType::ParamTypes::const_iterator
            I = MTy->getParamTypes().begin(),