Fixed bug in Regression/CBackend/2002-10-30-FunctionPointerAlloca.ll


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4486 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index 1922e6f..bd2e376 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/lib/Target/CBackend/CBackend.cpp
@@ -208,7 +208,7 @@
   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(),
diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp
index 1922e6f..bd2e376 100644
--- a/lib/Target/CBackend/Writer.cpp
+++ b/lib/Target/CBackend/Writer.cpp
@@ -208,7 +208,7 @@
   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(),