aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commitfddca553f2e73ee5830dae5aae8b1e56bfb343e0 (patch)
treef4fc0528c9979999b91b4d2e78e244b87f239f08 /lib
parent8ffd2e76c5776ff097fce62cab8220c940303723 (diff)
downloadexternal_llvm-fddca553f2e73ee5830dae5aae8b1e56bfb343e0.zip
external_llvm-fddca553f2e73ee5830dae5aae8b1e56bfb343e0.tar.gz
external_llvm-fddca553f2e73ee5830dae5aae8b1e56bfb343e0.tar.bz2
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/CBackend/CBackend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index 7ba24a9..c5086c4 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/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: