From be230c36e32142cbdcdbe9c97511d097beeecbab Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 3 Jan 2011 17:17:50 +0000 Subject: Implement support for pack expansions whose pattern is a non-type template argument (described by an expression, of course). For example: template struct int_tuple { }; template struct square { typedef int_tuple<(Values*Values)...> type; }; It also lays the foundation for pack expansions in an initializer-list. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122751 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/Mangle.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/CodeGen/Mangle.cpp') diff --git a/lib/CodeGen/Mangle.cpp b/lib/CodeGen/Mangle.cpp index a45403e467..0aa9f402f9 100644 --- a/lib/CodeGen/Mangle.cpp +++ b/lib/CodeGen/Mangle.cpp @@ -2043,7 +2043,11 @@ void CXXNameMangler::mangleExpression(const Expr *E, unsigned Arity) { Out << "LDnE"; break; } - + + case Expr::PackExpansionExprClass: + Out << "sp"; + mangleExpression(cast(E)->getPattern()); + break; } } -- cgit v1.2.3