llvm.org GIT mirror llvm / 0c94d6f
llvm-undname: Name a bool param, no behavior change git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358240 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 1 year, 7 months ago
1 changed file(s) with 6 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
506506 Demangler::demangleLiteralOperatorIdentifier(StringView &MangledName) {
507507 LiteralOperatorIdentifierNode *N =
508508 Arena.alloc();
509 N->Name = demangleSimpleString(MangledName, false);
509 N->Name = demangleSimpleString(MangledName, /*Memorize=*/false);
510510 return N;
511511 }
512512
13881388 // Parses a type name in the form of A@B@C@@ which represents C::B::A.
13891389 QualifiedNameNode *
13901390 Demangler::demangleFullyQualifiedTypeName(StringView &MangledName) {
1391 IdentifierNode *Identifier = demangleUnqualifiedTypeName(MangledName, true);
1391 IdentifierNode *Identifier =
1392 demangleUnqualifiedTypeName(MangledName, /*Memorize=*/true);
13921393 if (Error)
13931394 return nullptr;
13941395 assert(Identifier);
14571458 return demangleTemplateInstantiationName(MangledName, NBB);
14581459 if (MangledName.startsWith('?'))
14591460 return demangleFunctionIdentifierCode(MangledName);
1460 return demangleSimpleName(MangledName, (NBB & NBB_Simple) != 0);
1461 return demangleSimpleName(MangledName, /*Memorize=*/(NBB & NBB_Simple) != 0);
14611462 }
14621463
14631464 IdentifierNode *Demangler::demangleNameScopePiece(StringView &MangledName) {
14731474 if (startsWithLocalScopePattern(MangledName))
14741475 return demangleLocallyScopedNamePiece(MangledName);
14751476
1476 return demangleSimpleName(MangledName, true);
1477 return demangleSimpleName(MangledName, /*Memorize=*/true);
14771478 }
14781479
14791480 static NodeArrayNode *nodeListToNodeArray(ArenaAllocator &Arena, NodeList *Head,
18321833 MangledName.popFront();
18331834
18341835 CustomTypeNode *CTN = Arena.alloc();
1835 CTN->Identifier = demangleUnqualifiedTypeName(MangledName, true);
1836 CTN->Identifier = demangleUnqualifiedTypeName(MangledName, /*Memorize=*/true);
18361837 if (!MangledName.consumeFront('@'))
18371838 Error = true;
18381839 if (Error)