MS ABI: Simplify mangleTemplateArgs

No functionality change.

llvm-svn: 205154
This commit is contained in:
David Majnemer 2014-03-30 16:30:54 +00:00
parent 90adf0fe06
commit 8265decf46
1 changed files with 3 additions and 7 deletions

View File

@ -1101,15 +1101,11 @@ MicrosoftCXXNameMangler::mangleExpression(const Expr *E) {
<< E->getStmtClassName() << E->getSourceRange();
}
void
MicrosoftCXXNameMangler::mangleTemplateArgs(const TemplateDecl *TD,
const TemplateArgumentList &TemplateArgs) {
void MicrosoftCXXNameMangler::mangleTemplateArgs(
const TemplateDecl *TD, const TemplateArgumentList &TemplateArgs) {
// <template-args> ::= <template-arg>+ @
unsigned NumTemplateArgs = TemplateArgs.size();
for (unsigned i = 0; i < NumTemplateArgs; ++i) {
const TemplateArgument &TA = TemplateArgs[i];
for (const TemplateArgument &TA : TemplateArgs.asArray())
mangleTemplateArg(TD, TA);
}
Out << '@';
}