We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f97cd8 commit fa46d52Copy full SHA for fa46d52
llvm/tools/llvm-xray/xray-stacks.cpp
@@ -495,15 +495,8 @@ class StackTrie {
495
void printIgnoringThreads(raw_ostream &OS, FuncIdConversionHelper &FN) {
496
RootVector RootValues;
497
498
- // Function to pull the values out of a map iterator.
499
- using RootsType = decltype(Roots.begin())::value_type;
500
- auto MapValueFn = [](const RootsType &Value) { return Value.second; };
501
-
502
- for (const auto &RootNodeRange :
503
- make_range(map_iterator(Roots.begin(), MapValueFn),
504
- map_iterator(Roots.end(), MapValueFn))) {
+ for (const auto &RootNodeRange : make_second_range(Roots))
505
llvm::append_range(RootValues, RootNodeRange);
506
- }
507
508
print(OS, FN, RootValues);
509
}
0 commit comments