mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 07:24:25 +00:00
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
This commit is contained in:
@ -429,8 +429,8 @@ CWriter::printSimpleType(std::ostream &Out, const Type *Ty, bool isSigned,
|
|||||||
case Type::VectorTyID: {
|
case Type::VectorTyID: {
|
||||||
const VectorType *VTy = cast<VectorType>(Ty);
|
const VectorType *VTy = cast<VectorType>(Ty);
|
||||||
return printType(Out, VTy->getElementType(), false,
|
return printType(Out, VTy->getElementType(), false,
|
||||||
NameSoFar + " __attribute__((vector_size(" +
|
" __attribute__((vector_size(" +
|
||||||
utostr(TD->getABITypeSize(VTy)) + " ))) ");
|
utostr(TD->getABITypeSize(VTy)) + " ))) " + NameSoFar);
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user