forked from OSchip/llvm-project
MS ABI: Simplify mangleTemplateArgs
No functionality change. llvm-svn: 205154
This commit is contained in:
parent
90adf0fe06
commit
8265decf46
|
@ -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 << '@';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue