llvm.org GIT mirror llvm / 21c63d5
llvm-undname: Name a pair. No behavior change. Differential Revision: https://reviews.llvm.org/D60210 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357653 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 1 year, 7 months ago
1 changed file(s) with 5 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
13261326
13271327 NamedIdentifierNode *Identifier = Arena.alloc();
13281328 MangledName.consumeFront('?');
1329 auto Number = demangleNumber(MangledName);
1330 assert(!Number.second);
1329 uint64_t Number = 0;
1330 bool IsNegative = false;
1331 std::tie(Number, IsNegative) = demangleNumber(MangledName);
1332 assert(!IsNegative);
13311333
13321334 // One ? to terminate the number
13331335 MangledName.consumeFront('?');
13451347 OS << '`';
13461348 Scope->output(OS, OF_Default);
13471349 OS << '\'';
1348 OS << "::`" << Number.first << "'";
1350 OS << "::`" << Number << "'";
13491351 OS << '\0';
13501352 char *Result = OS.getBuffer();
13511353 Identifier->Name = copyString(Result);