diff options
author | John Wiegley <johnw@boostpro.com> | 2011-04-28 00:16:57 +0000 |
---|---|---|
committer | John Wiegley <johnw@boostpro.com> | 2011-04-28 00:16:57 +0000 |
commit | 6242b6a688ccdfeb0195bc1180922118e291229d (patch) | |
tree | d2fa0106360df7bec519c3836ba5ae1af08e77cc /clang/lib/AST/StmtProfile.cpp | |
parent | 1e34241abd5cf86d4d4df1f92fc88026a9ead515 (diff) | |
download | bcm5719-llvm-6242b6a688ccdfeb0195bc1180922118e291229d.tar.gz bcm5719-llvm-6242b6a688ccdfeb0195bc1180922118e291229d.zip |
Implementation of Embarcadero array type traits
Patch authored by John Wiegley.
These are array type traits used for parsing code that employs certain
features of the Embarcadero C++ compiler: __array_rank(T) and
__array_extent(T, Dim).
llvm-svn: 130351
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
-rw-r--r-- | clang/lib/AST/StmtProfile.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp index fe9a10b01e0..7a3fc5417c4 100644 --- a/clang/lib/AST/StmtProfile.cpp +++ b/clang/lib/AST/StmtProfile.cpp @@ -802,6 +802,12 @@ void StmtProfiler::VisitBinaryTypeTraitExpr(BinaryTypeTraitExpr *S) { VisitType(S->getRhsType()); } +void StmtProfiler::VisitArrayTypeTraitExpr(ArrayTypeTraitExpr *S) { + VisitExpr(S); + ID.AddInteger(S->getTrait()); + VisitType(S->getQueriedType()); +} + void StmtProfiler::VisitExpressionTraitExpr(ExpressionTraitExpr *S) { VisitExpr(S); ID.AddInteger(S->getTrait()); |