From 85243c22237cce6591773b7d8bc61117e81bde24 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 2 Mar 2008 03:41:23 +0000 Subject: [PATCH] respect isSigned for vector types, fixing sdiv of vectors etc. llvm-svn: 47810 --- lib/Target/CBackend/CBackend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index c5086c4bfcd..4c361527e2c 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -398,7 +398,7 @@ void CWriter::printStructReturnPointerFunctionType(std::ostream &Out, std::ostream & CWriter::printSimpleType(std::ostream &Out, const Type *Ty, bool isSigned, - const std::string &NameSoFar) { + const std::string &NameSoFar) { assert((Ty->isPrimitiveType() || Ty->isInteger() || isa(Ty)) && "Invalid type for printSimpleType"); switch (Ty->getTypeID()) { @@ -428,7 +428,7 @@ CWriter::printSimpleType(std::ostream &Out, const Type *Ty, bool isSigned, case Type::VectorTyID: { const VectorType *VTy = cast(Ty); - return printType(Out, VTy->getElementType(), false, + return printSimpleType(Out, VTy->getElementType(), isSigned, " __attribute__((vector_size(" + utostr(TD->getABITypeSize(VTy)) + " ))) " + NameSoFar); }