From: Nick Hildenbrandt Date: Fri, 1 Nov 2002 17:37:09 +0000 (+0000) Subject: Fixed bug in Regression/CBackend/2002-10-30-FunctionPointerAlloca.ll X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7e9fea736dd0c4d961b159ada205cafbcb4b68cf;p=oota-llvm.git 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 1922e6fd265..bd2e37647ef 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -208,7 +208,7 @@ ostream &CWriter::printType(const Type *Ty, const string &NameSoFar, case Type::FunctionTyID: { const FunctionType *MTy = cast(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 1922e6fd265..bd2e37647ef 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -208,7 +208,7 @@ ostream &CWriter::printType(const Type *Ty, const string &NameSoFar, case Type::FunctionTyID: { const FunctionType *MTy = cast(Ty); printType(MTy->getReturnType(), ""); - Out << " " << NameSoFar << " ("; + Out << " (" << NameSoFar << ") ("; for (FunctionType::ParamTypes::const_iterator I = MTy->getParamTypes().begin(),