diff options
author | James Y Knight <jyknight@google.com> | 2015-12-24 02:59:37 +0000 |
---|---|---|
committer | James Y Knight <jyknight@google.com> | 2015-12-24 02:59:37 +0000 |
commit | 04ec5bfad8ff4ce74e9a0104069971d5e27862c7 (patch) | |
tree | ddece5dda6b3dbf5be86581a383c5d540d055a21 /clang/lib/AST/StmtProfile.cpp | |
parent | 0a1f1fe5a21ea65b0cf08c139ce5c2c9ffc91ba1 (diff) | |
download | bcm5719-llvm-04ec5bfad8ff4ce74e9a0104069971d5e27862c7.tar.gz bcm5719-llvm-04ec5bfad8ff4ce74e9a0104069971d5e27862c7.zip |
[TrailingObjects] Convert ASTTemplateKWAndArgsInfo and ASTTemplateArgumentListInfo.
Doing so required separating them so that the former doesn't inherit
from the latter anymore. Investigating that, it became clear that the
inheritance wasn't actually providing real value in any case.
So also:
- Remove a bunch of redundant functions (getExplicitTemplateArgs,
getOptionalExplicitTemplateArgs) on various Expr subclasses which
depended on the inheritance relationship.
- Switched external callers to use pre-existing accessors that return the
data they're actually interested in (getTemplateArgs,
getNumTemplateArgs, etc).
- Switched internal callers to use pre-existing getTemplateKWAndArgsInfo.
llvm-svn: 256359
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
-rw-r--r-- | clang/lib/AST/StmtProfile.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp index 5f6e1c7d330..90bedcc1fe5 100644 --- a/clang/lib/AST/StmtProfile.cpp +++ b/clang/lib/AST/StmtProfile.cpp @@ -1275,8 +1275,7 @@ void StmtProfiler::VisitOverloadExpr(const OverloadExpr *S) { VisitName(S->getName()); ID.AddBoolean(S->hasExplicitTemplateArgs()); if (S->hasExplicitTemplateArgs()) - VisitTemplateArguments(S->getExplicitTemplateArgs().getTemplateArgs(), - S->getExplicitTemplateArgs().NumTemplateArgs); + VisitTemplateArguments(S->getTemplateArgs(), S->getNumTemplateArgs()); } void |