summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CBackend/CBackend.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-02 03:39:43 +0000
committerChris Lattner <sabre@nondot.org>2008-03-02 03:39:43 +0000
commitfe1083be61330ae5177102e61172429997eabe99 (patch)
treeb387ffdc62192ef06b8cf25f0c2f32cfa3b930de /llvm/lib/Target/CBackend/CBackend.cpp
parent8bbec39262d1cd5896f240c0ca86979461fd9bab (diff)
downloadbcm5719-llvm-fe1083be61330ae5177102e61172429997eabe99.tar.gz
bcm5719-llvm-fe1083be61330ae5177102e61172429997eabe99.zip
print the attribute in the right place, this fixes function returning vectors.
llvm-svn: 47809
Diffstat (limited to 'llvm/lib/Target/CBackend/CBackend.cpp')
-rw-r--r--llvm/lib/Target/CBackend/CBackend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp
index 7ba24a94741..c5086c4bfcd 100644
--- a/llvm/lib/Target/CBackend/CBackend.cpp
+++ b/llvm/lib/Target/CBackend/CBackend.cpp
@@ -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:
OpenPOWER on IntegriCloud