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 | d809071bcb45ecf4939ea084fc80c64be70fe23f (patch) | |
tree | 9ea2c9014bdef7678b49269af613f28568a052c6 /lib/Target/CBackend | |
parent | fddca553f2e73ee5830dae5aae8b1e56bfb343e0 (diff) | |
download | external_llvm-d809071bcb45ecf4939ea084fc80c64be70fe23f.zip external_llvm-d809071bcb45ecf4939ea084fc80c64be70fe23f.tar.gz external_llvm-d809071bcb45ecf4939ea084fc80c64be70fe23f.tar.bz2 |
respect isSigned for vector types, fixing sdiv of vectors etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47810 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index c5086c4..4c36152 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<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); } |