diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-02 03:41:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-02 03:41:23 +0000 |
commit | 92d929c21d18d3a368841dfcf1b5dbc4f3a1dfef (patch) | |
tree | 5e37b52dd05faebeafccd2b378266e915ec5ef4b /llvm/lib/Target/CBackend/CBackend.cpp | |
parent | fe1083be61330ae5177102e61172429997eabe99 (diff) | |
download | bcm5719-llvm-92d929c21d18d3a368841dfcf1b5dbc4f3a1dfef.tar.gz bcm5719-llvm-92d929c21d18d3a368841dfcf1b5dbc4f3a1dfef.zip |
respect isSigned for vector types, fixing sdiv of vectors etc.
llvm-svn: 47810
Diffstat (limited to 'llvm/lib/Target/CBackend/CBackend.cpp')
-rw-r--r-- | llvm/lib/Target/CBackend/CBackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp index c5086c4bfcd..4c361527e2c 100644 --- a/llvm/lib/Target/CBackend/CBackend.cpp +++ b/llvm/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<VectorType>(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<VectorType>(Ty); - return printType(Out, VTy->getElementType(), false, + return printSimpleType(Out, VTy->getElementType(), isSigned, " __attribute__((vector_size(" + utostr(TD->getABITypeSize(VTy)) + " ))) " + NameSoFar); } |