print the attribute in the right place, this fixes function returning vectors.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47809 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2008-03-02 03:39:43 +00:00
parent f58d4dec98
commit 32cba8e063

View File

@ -429,8 +429,8 @@ CWriter::printSimpleType(std::ostream &Out, const Type *Ty, bool isSigned,
case Type::VectorTyID: {
const VectorType *VTy = cast<VectorType>(Ty);
return printType(Out, VTy->getElementType(), false,
NameSoFar + " __attribute__((vector_size(" +
utostr(TD->getABITypeSize(VTy)) + " ))) ");
" __attribute__((vector_size(" +
utostr(TD->getABITypeSize(VTy)) + " ))) " + NameSoFar);
}
default: