diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-06-17 21:51:59 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-06-17 21:51:59 +0000 |
| commit | 758a869b14a44f321812054df453609bd908c63f (patch) | |
| tree | 3d26d29e9db96c741fcb3ff68dcf45eee55e762d /clang/lib/AST/ASTContext.cpp | |
| parent | 3f460e84d05905ae41814a463fa61b2d36a33189 (diff) | |
| download | bcm5719-llvm-758a869b14a44f321812054df453609bd908c63f.tar.gz bcm5719-llvm-758a869b14a44f321812054df453609bd908c63f.zip | |
Support dependent extended vector types and template instantiation
thereof. Patch by Anders Johnsen!
llvm-svn: 73641
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index d97d2155c04..660b30a5e25 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -1269,6 +1269,18 @@ QualType ASTContext::getExtVectorType(QualType vecType, unsigned NumElts) { return QualType(New, 0); } +QualType ASTContext::getDependentSizedExtVectorType(QualType vecType, + Expr *SizeExpr, + SourceLocation AttrLoc) { + DependentSizedExtVectorType *New = + new (*this,8) DependentSizedExtVectorType(vecType, QualType(), + SizeExpr, AttrLoc); + + DependentSizedExtVectorTypes.push_back(New); + Types.push_back(New); + return QualType(New, 0); +} + /// getFunctionNoProtoType - Return a K&R style C function type like 'int()'. /// QualType ASTContext::getFunctionNoProtoType(QualType ResultTy) { |

