File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
lib/DebugInfo/LogicalView
test/tools/llvm-debuginfo-analyzer/IR Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ void printCollectedElements(LVScope *Root) {
3232 Entry->print (dbgs ());
3333 };
3434
35- Print (Parent->getChildren ());
35+ for (LVElement *Element : Parent->getChildren ())
36+ Element->print (dbgs ());
3637 Print (Parent->getLines ());
3738 Print (Parent->getRanges ());
3839 if (const LVScopes *Scopes = Parent->getScopes ())
Original file line number Diff line number Diff line change @@ -2283,14 +2283,14 @@ void LVIRReader::checkScopes(LVScope *Scope) {
22832283 };
22842284
22852285 std::function<void (LVScope * Parent)> Traverse = [&](LVScope *Current) {
2286- auto Check = [&](const auto *Set) {
2287- if (Set)
2288- for (const auto &Entry : *Set)
2289- if (!Entry->getIsFinalized ())
2290- PrintElement (Entry);
2286+ auto Check = [&](auto *Entry) {
2287+ if (Entry)
2288+ if (!Entry->getIsFinalized ())
2289+ PrintElement (Entry);
22912290 };
22922291
2293- Check (Current->getChildren ());
2292+ for (LVElement *Element : Current->getChildren ())
2293+ Check (Element);
22942294
22952295 if (Current->getScopes ())
22962296 for (LVScope *Scope : *Current->getScopes ())
Original file line number Diff line number Diff line change 3535; ONE-NEXT: [002] 1 {TypeAlias} 'INTPTR' -> '* const int'
3636; ONE-NEXT: [002] 2 {Function} extern not_inlined 'foo' -> 'int'
3737; ONE-NEXT: [003] {Block}
38- ; ONE-NEXT: [004] 5 {Variable} 'CONSTANT' -> 'const INTEGER'
3938; ONE-NEXT: +[004] 4 {TypeAlias} 'INTEGER' -> 'int'
39+ ; ONE-NEXT: [004] 5 {Variable} 'CONSTANT' -> 'const INTEGER'
4040; ONE-NEXT: [003] 2 {Parameter} 'ParamBool' -> 'bool'
4141; ONE-NEXT: [003] 2 {Parameter} 'ParamPtr' -> 'INTPTR'
4242; ONE-NEXT: [003] 2 {Parameter} 'ParamUnsigned' -> 'unsigned int'
You can’t perform that action at this time.
0 commit comments