aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2008-04-18 23:10:10 +0000
committerNate Begeman <natebegeman@mac.com>2008-04-18 23:10:10 +0000
commit213541a68a3e137d11d2cefb612c6cdb410d7e8e (patch)
tree04300b07f5b4a07ac48ad429b2a0770b5b52a09c /lib/Sema/SemaDecl.cpp
parent2f0e89ea96292d2974eb1a7dddc0e9870aa86bb7 (diff)
OCUVector -> ExtVector, shorthand for extended vector, per feedback from Chris.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49942 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index e51b7974ae..eec8ce5d0a 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -1928,12 +1928,12 @@ void Sema::HandleDeclAttribute(Decl *New, AttributeList *Attr) {
tDecl->setUnderlyingType(newType);
}
break;
- case AttributeList::AT_ocu_vector_type:
+ case AttributeList::AT_ext_vector_type:
if (TypedefDecl *tDecl = dyn_cast<TypedefDecl>(New))
- HandleOCUVectorTypeAttribute(tDecl, Attr);
+ HandleExtVectorTypeAttribute(tDecl, Attr);
else
Diag(Attr->getLoc(),
- diag::err_typecheck_ocu_vector_not_typedef);
+ diag::err_typecheck_ext_vector_not_typedef);
break;
case AttributeList::AT_address_space:
if (TypedefDecl *tDecl = dyn_cast<TypedefDecl>(New)) {
@@ -2009,7 +2009,7 @@ void Sema::HandleDeclAttributes(Decl *New, AttributeList *declspec_prefix,
}
}
-void Sema::HandleOCUVectorTypeAttribute(TypedefDecl *tDecl,
+void Sema::HandleExtVectorTypeAttribute(TypedefDecl *tDecl,
AttributeList *rawAttr) {
QualType curType = tDecl->getUnderlyingType();
// check the attribute arguments.
@@ -2022,7 +2022,7 @@ void Sema::HandleOCUVectorTypeAttribute(TypedefDecl *tDecl,
llvm::APSInt vecSize(32);
if (!sizeExpr->isIntegerConstantExpr(vecSize, Context)) {
Diag(rawAttr->getLoc(), diag::err_attribute_argument_not_int,
- "ocu_vector_type", sizeExpr->getSourceRange());
+ "ext_vector_type", sizeExpr->getSourceRange());
return;
}
// unlike gcc's vector_size attribute, we do not allow vectors to be defined
@@ -2043,9 +2043,9 @@ void Sema::HandleOCUVectorTypeAttribute(TypedefDecl *tDecl,
return;
}
// Instantiate/Install the vector type, the number of elements is > 0.
- tDecl->setUnderlyingType(Context.getOCUVectorType(curType, vectorSize));
+ tDecl->setUnderlyingType(Context.getExtVectorType(curType, vectorSize));
// Remember this typedef decl, we will need it later for diagnostics.
- OCUVectorDecls.push_back(tDecl);
+ ExtVectorDecls.push_back(tDecl);
}
QualType Sema::HandleVectorTypeAttribute(QualType curType,