diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-01-15 06:45:20 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-01-15 06:45:20 +0000 |
commit | 5590be0491cb6a88146c1580d35dc67b68719c33 (patch) | |
tree | 5dbc9b9153276969ba28dacb4961354aa7dc6188 /clang/lib/AST/ItaniumMangle.cpp | |
parent | 9c10d587f6fd445becdd0a5fa62af0d8de9adabd (diff) | |
download | bcm5719-llvm-5590be0491cb6a88146c1580d35dc67b68719c33.tar.gz bcm5719-llvm-5590be0491cb6a88146c1580d35dc67b68719c33.zip |
Introduce a new kind of TemplateName that captures a substituted
template template parameter pack that cannot be fully expanded because
its enclosing pack expansion could not be expanded. This form of
TemplateName plays the same role as SubstTemplateTypeParmPackType and
SubstNonTypeTemplateParmPackExpr do for template type parameter packs
and non-type template parameter packs, respectively.
We should now handle these multi-level pack expansion substitutions
anywhere. The largest remaining gap in our variadic-templates support
is that we cannot cope with non-type template parameter packs whose
type is a pack expansion.
llvm-svn: 123521
Diffstat (limited to 'clang/lib/AST/ItaniumMangle.cpp')
-rw-r--r-- | clang/lib/AST/ItaniumMangle.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/AST/ItaniumMangle.cpp b/clang/lib/AST/ItaniumMangle.cpp index 2f8be294f2c..15cd7f7f8d8 100644 --- a/clang/lib/AST/ItaniumMangle.cpp +++ b/clang/lib/AST/ItaniumMangle.cpp @@ -1017,6 +1017,12 @@ void CXXNameMangler::mangleType(TemplateName TN) { break; } + case TemplateName::SubstTemplateTemplateParmPack: { + SubstTemplateTemplateParmPackStorage *SubstPack + = TN.getAsSubstTemplateTemplateParmPack(); + mangleTemplateParameter(SubstPack->getParameterPack()->getIndex()); + break; + } } addSubstitution(TN); |