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(),